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