Skip to content

Commit 7665574

Browse files
authored
Merge pull request #272 from jwakely/trailing-whitespace
Prevent amalgamate.py from adding trailing whitespace
2 parents 9ab3525 + a60ef3b commit 7665574

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/amalgamate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
text = ''
2929
for line in lines:
30-
text += '// ' + line.strip() + '\n'
30+
line = line.strip()
31+
if len(line):
32+
line = ' ' + line
33+
text += '//' + line + '\n'
3134
processed_files[filename] = text
3235

3336
# code

0 commit comments

Comments
 (0)