Merge pull request #272 from jwakely/trailing-whitespace

Prevent amalgamate.py from adding trailing whitespace
This commit is contained in:
Daniel Lemire 2024-10-24 12:02:33 -04:00 committed by GitHub
commit 7665574628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,10 @@ for filename in ['LICENSE-MIT', 'LICENSE-APACHE', 'LICENSE-BOOST']:
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