Simplify code to unwind #012/LF

This commit is contained in:
Carsten Grohmann 2021-07-28 21:05:34 +02:00
parent 7fbbeace61
commit 08f7669654

View File

@ -271,9 +271,7 @@ class OOMEntity(object):
for line in oom_lines:
if '#012' in line:
line = line.replace('#012', '\r')
expanded = line.split('\r')
lines.extend(expanded)
lines.extend(line.split('#012'))
else:
lines.append(line)