From a34119578709778b8049ce9ffa162094e7ad25da Mon Sep 17 00:00:00 2001 From: David Lowry-Duda Date: Wed, 29 Nov 2017 14:54:24 +0000 Subject: [PATCH] Prevent `{{` or `}}` from appearing in output The output generated from `make lmfdb` is placed into the lmfdb, which has jinja expansion. The pattern `{{` and `}}` leads to errors, as these indicate code in jinja. This commit has the `make lmfdb` command replace each `{{` with `{ {` and `}}` with `} }`. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 8a42b37..1332001 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ lmfdb: citations.bib bibtex2html -a -nodoc -header "" -footer "" -nofooter -f url -html-entities -o citations_content citations.bib sed -i 's!citations_content\.html!/citation/citations!g' citations_content_bib.html + sed -i -e 's/{{/{ {/g' citations_content_bib.html + sed -i -e 's/}}/} }/g' citations_content_bib.html sed -i 's!citations_content_bib\.html!/citation/citations_bib!g' citations_content.html # -d for sort by Date instead of alphabetical