From d2dd6015b3ff793c8ce544cebb2181400c494e42 Mon Sep 17 00:00:00 2001 From: KV Date: Sun, 9 Jun 2024 22:34:37 +0200 Subject: [PATCH] Rename "sheetsize_default" to (#380) Fixes #377 --- src/wireviz/templates/din-6771.html | 2 +- src/wireviz/wv_html.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/wireviz/templates/din-6771.html b/src/wireviz/templates/din-6771.html index 547a340c..1aab000d 100644 --- a/src/wireviz/templates/din-6771.html +++ b/src/wireviz/templates/din-6771.html @@ -179,7 +179,7 @@
-
+
diff --git a/src/wireviz/wv_html.py b/src/wireviz/wv_html.py index 763da9d7..ccbf3bab 100644 --- a/src/wireviz/wv_html.py +++ b/src/wireviz/wv_html.py @@ -85,6 +85,7 @@ def generate_html_output( "": bom_html_reversed, "": "1", # TODO: handle multi-page documents "": "1", # TODO: handle multi-page documents + "": metadata.get("template", {}).get("sheetsize", ""), } # prepare metadata replacements @@ -101,11 +102,6 @@ def generate_html_output( html_line_breaks(str(entry_value)) ) - replacements['"sheetsize_default"'] = '"{}"'.format( - metadata.get("template", {}).get("sheetsize", "") - ) - # include quotes so no replacement happens within