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: for line in oom_lines:
if '#012' in line: if '#012' in line:
line = line.replace('#012', '\r') lines.extend(line.split('#012'))
expanded = line.split('\r')
lines.extend(expanded)
else: else:
lines.append(line) lines.append(line)