Skip to content

Commit

Permalink
Merge pull request #272 from jwakely/trailing-whitespace
Browse files Browse the repository at this point in the history
Prevent amalgamate.py from adding trailing whitespace
  • Loading branch information
lemire authored Oct 24, 2024
2 parents 9ab3525 + a60ef3b commit 7665574
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/amalgamate.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

text = ''
for line in lines:
text += '// ' + line.strip() + '\n'
line = line.strip()
if len(line):
line = ' ' + line
text += '//' + line + '\n'
processed_files[filename] = text

# code
Expand Down

0 comments on commit 7665574

Please sign in to comment.