add remove blanks in output

This commit is contained in:
Matthias@Dell 2023-11-19 20:12:15 +01:00
parent 36efa54904
commit ca60a1b02c

View File

@ -660,6 +660,8 @@ if __name__ == "__main__":
target_html = file.read() target_html = file.read()
output_html = parse_file(target_html, variables, not args.preserve_comments) output_html = parse_file(target_html, variables, not args.preserve_comments)
# remove empty lines
output_html = re.sub(r"[\t\r ]*\n(?:[\t\r ]*\n[\t\r ]*)+", r"\n", output_html)
# pdebug(f"Output: {output_html}") # pdebug(f"Output: {output_html}")