diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index 2ea889bf4..547ed2e40 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -246,7 +246,10 @@ def parse_instructions(instructions): instruction_text += str(i) 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):