mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +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 = ''
|
text = ''
|
||||||
for line in lines:
|
for line in lines:
|
||||||
text += '// ' + line.strip() + '\n'
|
line = line.strip()
|
||||||
|
if len(line):
|
||||||
|
line = ' ' + line
|
||||||
|
text += '//' + line + '\n'
|
||||||
processed_files[filename] = text
|
processed_files[filename] = text
|
||||||
|
|
||||||
# code
|
# code
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user