mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
Prevent amalgamate.py from adding trailing whitespace
When adding the license text, only add leading whitespace to non-empty lines, otherwise it becomes trailing whitespace.
This commit is contained in:
parent
9ab35254a8
commit
a60ef3b2e1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user