mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-10 22:41:51 +02:00
strip newline at the end of each line string
This commit is contained in:
@@ -170,12 +170,12 @@ def parse(
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
output_line = {
|
output_line = {
|
||||||
'unparsable': line
|
'unparsable': line.rstrip()
|
||||||
}
|
}
|
||||||
|
|
||||||
if not quiet:
|
if not quiet:
|
||||||
jc.utils.warning_message(
|
jc.utils.warning_message(
|
||||||
[f'Unparsable line found: {line}']
|
[f'Unparsable line found: {line.rstrip()}']
|
||||||
)
|
)
|
||||||
|
|
||||||
if output_line:
|
if output_line:
|
||||||
|
@@ -260,12 +260,12 @@ def parse(
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
output_line = {
|
output_line = {
|
||||||
'unparsable': line
|
'unparsable': line.rstrip()
|
||||||
}
|
}
|
||||||
|
|
||||||
if not quiet:
|
if not quiet:
|
||||||
jc.utils.warning_message(
|
jc.utils.warning_message(
|
||||||
[f'Unparsable line found: {line}']
|
[f'Unparsable line found: {line.rstrip()}']
|
||||||
)
|
)
|
||||||
|
|
||||||
if output_line:
|
if output_line:
|
||||||
|
Reference in New Issue
Block a user