Skip to content

Commit 5bacc52

Browse files
committed
Fix --html when --template_html is not provided.
1 parent a2528ae commit 5bacc52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CROSSREF_TYPE="iso"
2121
DO_AUTO_BACKMATTER="yes"
2222
TEMPLATE_PDF="tcg.tex"
2323
TEMPLATE_TYPST="tcg.typ"
24-
TEMPLATE_HTML=""
24+
HTML_TEMPLATE_ARGS=""
2525
HTML_STYLESHEET_ARGS=""
2626
CSL=""
2727

@@ -176,7 +176,7 @@ while true; do
176176
shift 2
177177
;;
178178
--template_html)
179-
TEMPLATE_HTML="${2}"
179+
HTML_TEMPLATE_ARGS=" --template ${2}"
180180
shift 2
181181
;;
182182
--html_stylesheet)
@@ -1027,7 +1027,7 @@ do_html() {
10271027
-V toccolor=blue
10281028
--embed-resources
10291029
--standalone
1030-
--template=${TEMPLATE_HTML}
1030+
${HTML_TEMPLATE_ARGS}
10311031
${HTML_STYLESHEET_ARGS}
10321032
--lua-filter=convert-diagrams.lua
10331033
--lua-filter=parse-html.lua

0 commit comments

Comments
 (0)