Lines Matching refs:lines
187 * The strings substituted must be on lines by
230 Returns 's', with 'prefix' prepended to all lines.
235 (textwrap.indent only adds to non-blank lines.)
251 Returns 's', with 'suffix' appended to all lines.
314 # Should be full lines with \n eol characters.
318 # Should be full lines with \n eol characters.
522 lines = s.rstrip().split('\n')
523 while lines:
524 line = lines[0]
527 del lines[0]
528 return '\n'.join(lines)
534 * removes leading and trailing blank lines
561 lines = []
565 lines.append(line)
569 lines.append(line)
572 lines.append(line)
592 lines.append(line.rstrip())
594 return "\n".join(lines)
1288 lines = [self.group_to_variable_name(g) + " = 1;" for g in group_ids]
1289 lines = "\n".join(lines)
1299 s = linear_format(s, group_booleans=lines)
1487 """Create an re object for matching marker lines."""
1651 # gh-92256: don't allow incorrectly formatted stop lines
4205 lines = block.input.split('\n')
4206 for line_number, line in enumerate(lines, self.clinic.block_parser.block_start_line_number):
4223 # ignore comment-only lines
4227 # Ignore empty lines too
4396 # * All lines must be indented with spaces only.
4406 # * All subsequent lines indented with >= D spaces are stored as
4408 # * All lines will have the first D spaces of the indent stripped
5082 lines = [line.rstrip() for line in docstring.split('\n')]
5096 if len(lines) >= 2:
5097 if lines[1]:
5101 elif len(lines) == 1:
5105 lines.append('')
5113 lines.insert(2, '{parameters}')
5116 lines.insert(0, docstring_first_line)
5118 docstring = "\n".join(lines)