Skip to content

Commit 6843a32

Browse files
Fix binary gibberish bug on extra newlines
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent a7cc2d5 commit 6843a32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/licensedcode/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def load(self, license_file, check_consistency=True):
463463

464464
self.text = ''
465465
else:
466-
self.text = post.content
466+
self.text = post.content.lstrip()
467467

468468
for k, v in data.items():
469469
if k == 'minimum_coverage':
@@ -1927,7 +1927,7 @@ def load(self, rule_file, with_checks=True):
19271927
f'{self}: file://{rule_file}'
19281928
)
19291929

1930-
self.text = post.content
1930+
self.text = post.content.lstrip()
19311931

19321932
except Exception as e:
19331933
print('#############################')

0 commit comments

Comments
 (0)