From 277237c051870abe85c1b2c03c78380276bd5b36 Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Mon, 13 May 2019 10:01:58 +0200 Subject: [PATCH] #82 strip whitespace from HTML (#83) --- kube_resource_report/report.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kube_resource_report/report.py b/kube_resource_report/report.py index 8914447..6745fdd 100755 --- a/kube_resource_report/report.py +++ b/kube_resource_report/report.py @@ -872,6 +872,8 @@ def write_report(output_path: Path, start, notifications, cluster_summaries, nam env = Environment( loader=FileSystemLoader(str(templates_path)), autoescape=select_autoescape(["html", "xml"]), + trim_blocks=True, + lstrip_blocks=True ) env.filters["money"] = filters.money env.filters["cpu"] = filters.cpu