Lines Matching full:lines
45 If text is selected, format_paragraph_event will start breaking lines
49 cursor location to determine the paragraph (lines of text surrounded
50 by blank lines) and formats it.
122 lines = data.split("\n")
124 n = len(lines)
125 while i < n and is_all_white(lines[i]):
129 indent1 = get_indent(lines[i])
130 if i+1 < n and not is_all_white(lines[i+1]):
131 indent2 = get_indent(lines[i+1])
134 new = lines[:i]
136 while i < n and not is_all_white(lines[i]):
138 words = re.split(r"(\s+)", lines[i])
153 new.extend(lines[i:])
159 # Remove header from the comment lines
170 # comment block that is not made of complete lines, but whatever!)
191 null return, such as ' #', will be used to find the other lines of
226 string representation of text, list of text lines).
237 lines = chars.split("\n")
238 return head, tail, chars, lines
240 def set_region(self, head, tail, chars, lines): argument
248 lines: List of new lines to insert between head
252 newchars = "\n".join(lines)
266 head, tail, chars, lines = self.get_region()
267 for pos in range(len(lines)):
268 line = lines[pos]
272 lines[pos] = self.editwin._make_blanks(effective) + line[raw:]
273 self.set_region(head, tail, chars, lines)
278 head, tail, chars, lines = self.get_region()
279 for pos in range(len(lines)):
280 line = lines[pos]
284 lines[pos] = self.editwin._make_blanks(effective) + line[raw:]
285 self.set_region(head, tail, chars, lines)
293 head, tail, chars, lines = self.get_region()
294 for pos in range(len(lines) - 1):
295 line = lines[pos]
296 lines[pos] = '##' + line
297 self.set_region(head, tail, chars, lines)
306 head, tail, chars, lines = self.get_region()
307 for pos in range(len(lines)):
308 line = lines[pos]
315 lines[pos] = line
316 self.set_region(head, tail, chars, lines)
321 head, tail, chars, lines = self.get_region()
325 for pos in range(len(lines)):
326 line = lines[pos]
330 lines[pos] = '\t' * ntabs + ' ' * nspaces + line[raw:]
331 self.set_region(head, tail, chars, lines)
336 head, tail, chars, lines = self.get_region()
340 for pos in range(len(lines)):
341 lines[pos] = lines[pos].expandtabs(tabwidth)
342 self.set_region(head, tail, chars, lines)