Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent {{ or }} from appearing in output #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidlowryduda
Copy link
Member

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 } }.

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 `} }`.
davidlowryduda added a commit to davidlowryduda/lmfdb that referenced this pull request Nov 29, 2017
The problem in LMFDB#2332 went unnoticed because of a lack of testing. This
commit adds tests for the base citations page and the "How to Cite" the
lmfdb page. These tests really just check that these pages exist. It
also tests a specific reference in the citation list and tests for its
bib entry in the associated bibliography list. This would catch the
problem from LMFDB#2332.

Note that I've also submitted a pull request to the LMFDB/citations
repository to prevent this issue from coming up. This is
LMFDB/citations#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant