Show More
@@ -154,7 +154,7 def strip_initial_indent(lines): | |||
|
154 | 154 | for line in it: |
|
155 | 155 | if line.startswith(indent): |
|
156 | 156 | yield line[len(indent):] |
|
157 |
elif line in ( |
|
|
157 | elif line in ("\n", "\r\n") or len(line) == 0: | |
|
158 | 158 | yield line |
|
159 | 159 | else: |
|
160 | 160 | # Less indented than the first line - stop dedenting |
General Comments 0
You need to be logged in to leave comments.
Login now