mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 04:40:43 +00:00
fix newline handling
This commit is contained in:
parent
c5833fc12a
commit
2b6d61bbfb
@ -139,7 +139,7 @@ class Annotation:
|
||||
self._file_handler.seek(current_file_position)
|
||||
break
|
||||
|
||||
final = newline + next_line.replace("#", "").strip()
|
||||
final = newline + next_line.replace("#", "").rstrip()
|
||||
# match if empty line or commented empty line
|
||||
test_line = next_line.replace("#", "").strip()
|
||||
if len(test_line) == 0:
|
||||
@ -147,7 +147,7 @@ class Annotation:
|
||||
continue
|
||||
else:
|
||||
newline = ""
|
||||
|
||||
print(final)
|
||||
multiline.append(newline + final)
|
||||
|
||||
if parts[2].startswith("$"):
|
||||
|
Loading…
Reference in New Issue
Block a user