Skip to content

Commit

Permalink
empty text ref if text not in db
Browse files Browse the repository at this point in the history
  • Loading branch information
fmatter committed Dec 27, 2023
1 parent 454ec06 commit 01960d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lingdocs/data/model_templates/latex_util.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% macro txt_src(ctx) -%}
{% if data is undefined %}
{{ctx.data["Text_ID"]}}{% if ctx.data["Sentence_Number"] %}: {{ctx.data["Sentence_Number"]}}{%endif%}{% if ctx.data["Phrase_Number"] %} ({{ctx.data["Phrase_Number"]}}){%endif%}
{% else %}
{% elif data["examples"][ctx.id].text %}
{{link(data["examples"][ctx.id].text, anchor=ctx.id, html=True)}}{% if ctx.data["Sentence_Number"] %}: {{ctx.data["Sentence_Number"]}}{%endif%}
{% endif %}
{%- endmacro %}
Expand Down
2 changes: 1 addition & 1 deletion src/lingdocs/data/model_templates/mkdocs_util.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% macro txt_src(ctx) -%}
{%- if data is undefined %}
{{ctx.data["Text_ID"]}}{% if ctx.data["Sentence_Number"] %}: {{ctx.data["Sentence_Number"]}}{%endif%}
{% else %}
{% elif data["examples"][ctx.id].text %}
{{link(data["examples"][ctx.id].text, anchor=ctx.id, html=True)}}{% if ctx.data["Sentence_Number"] %}: {{ctx.data["Sentence_Number"]}}{%endif%}
{% endif %}
{%- endmacro %}
Expand Down

0 comments on commit 01960d1

Please sign in to comment.