mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
Merge pull request #272 from jwakely/trailing-whitespace
Prevent amalgamate.py from adding trailing whitespace
This commit is contained in:
commit
7665574628
@ -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