Skip to content
Snippets Groups Projects
Commit 9c107f73 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

keep the whitespace

parent be086ba2
No related branches found
No related tags found
1 merge request!14Add an option to make the aggregate output unique
Pipeline #
...@@ -135,7 +135,7 @@ def main(command_line_options = None): ...@@ -135,7 +135,7 @@ def main(command_line_options = None):
unique_lines = [] unique_lines = []
for line in data.split('\n'): for line in data.split('\n'):
if not line.strip(): if not line.strip():
f.write('\n') f.write(line + '\n')
elif line.strip()[0] == '#': elif line.strip()[0] == '#':
f.write(line + '\n') f.write(line + '\n')
elif line not in unique_lines: elif line not in unique_lines:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment