1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-08 22:36:48 +02:00

strip newline at the end of each line string

This commit is contained in:
Kelly Brazil
2022-08-16 17:00:09 -07:00
parent 8cbd92ccb6
commit 5f43abc908
2 changed files with 4 additions and 4 deletions

View File

@ -170,12 +170,12 @@ def parse(
else:
output_line = {
'unparsable': line
'unparsable': line.rstrip()
}
if not quiet:
jc.utils.warning_message(
[f'Unparsable line found: {line}']
[f'Unparsable line found: {line.rstrip()}']
)
if output_line:

View File

@ -260,12 +260,12 @@ def parse(
else:
output_line = {
'unparsable': line
'unparsable': line.rstrip()
}
if not quiet:
jc.utils.warning_message(
[f'Unparsable line found: {line}']
[f'Unparsable line found: {line.rstrip()}']
)
if output_line: