Skip to content

Commit

Permalink
Fix ref-doc-id and ref-id for cited paragraphs in translations
Browse files Browse the repository at this point in the history
  • Loading branch information
saviit committed Sep 7, 2023
1 parent 132b87c commit 3684b70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion timApp/templates/partials/paragraphs.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@
slide-pars="true"
{% endif %}
{% endif %}
{% if t.target %}
{% if t.attrs.rd and t.attrs.r == 'tr' and t.attrs.rp %}
ref-doc-id="{{ t.attrs.rd }}"
ref-id="{{ t.attrs.rp }}"
ref-t="{{ t.target.hash }}"
{% elif t.target %}
ref-id="{{ t.target.id }}"
ref-t="{{ t.target.hash }}"
ref-attrs="{{ t.target.attrs_str }}"
Expand Down

0 comments on commit 3684b70

Please sign in to comment.