improved html importer instruction line break behavior

This commit is contained in:
vabene1111
2021-11-01 11:27:19 +01:00
parent e4924f9d27
commit 4efed9a1d2

View File

@@ -246,7 +246,10 @@ def parse_instructions(instructions):
instruction_text += str(i) instruction_text += str(i)
instructions = instruction_text instructions = instruction_text
return normalize_string(instructions) normalized_string = normalize_string(instructions)
normalized_string = normalized_string.replace('\n', ' \n')
normalized_string = normalized_string.replace(' \n \n', '\n\n')
return normalized_string
def parse_image(image): def parse_image(image):