diff --git a/html_generator.py b/html_generator.py index 665f2e7b..e6c9e85c 100644 --- a/html_generator.py +++ b/html_generator.py @@ -148,7 +148,8 @@ def generate_html(f): output += '' output = output.split('\n') for i in range(len(output)): - output[i] = re.sub('^(>[^\n]*(
|))', '\\1\n', output[i]) + output[i] = re.sub(r'^(>(.*?)(
|))', r'\1', output[i]) + output[i] = re.sub(r'^
(>(.*?)(
|))', r'
\1', output[i]) output = '\n'.join(output) return output