Skip to content

Commit

Permalink
Fix ref-doc-id for translated citation pars
Browse files Browse the repository at this point in the history
  • Loading branch information
saviit committed Aug 7, 2023
1 parent 032da0b commit cf8912a
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 @@ -79,7 +79,11 @@
ref-id="{{ t.target.id }}"
ref-t="{{ t.target.hash }}"
ref-attrs="{{ t.target.attrs_str }}"
ref-doc-id="{{ t.target.doc_id }}"
{% if t.attrs.rd and t.attrs.rp and t.attrs.r == 'tr' %}
ref-doc-id="{{ t.attrs.rd }}"
{% else %}
ref-doc-id="{{ t.target.doc_id }}"
{% endif %}
{% endif %}>
{% if attrs.float and not ai and not preview %}
<div class="draggable-content">
Expand Down

0 comments on commit cf8912a

Please sign in to comment.