Skip to content
Snippets Groups Projects
Commit 65f54f86 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[fix] really testing that I'm at the beginning here

parent 2228eb08
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1602,13 +1602,17 @@ class LineProxyList(ProxyList):
for i in node_list:
if i.type != "endl":
result.append([i, []])
still_at_beginning = False
elif previous and previous.type == "endl":
result.append([i, []])
still_at_beginning = False
elif still_at_beginning and self.first_blank_lines:
result.append([i, []])
still_at_beginning = False
else:
if result:
result[-1][1].append(i)
still_at_beginning = False
else:
self.first_blank_lines.append(i)
still_at_beginning = True
Loading
Loading
@@ -1618,8 +1622,6 @@ class LineProxyList(ProxyList):
else:
previous = i
 
still_at_beginning = False
return result
 
def _get_separator_indentation(self):
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment