Skip to content

Commit b181910

Browse files
committed
updating circuit_maintenance_parser/parser.py Html.clean_line method to strip out occurences of \r\n and \r and replace them with \n instead, so that the newlines and carriage returns are formalized. Updated the tests to remove \r\n from the expected output
1 parent 9e7007e commit b181910

5 files changed

Lines changed: 258 additions & 154 deletions

File tree

circuit_maintenance_parser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def clean_line(line):
210210
try:
211211
return line.text.strip()
212212
except AttributeError:
213-
return line.strip()
213+
return line.strip().replace("\r\n", "\n").replace("\r", "\n")
214214

215215

216216
class EmailDateParser(Parser):

0 commit comments

Comments
 (0)