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:
@ -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:
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user