Skip to content

Commit

Permalink
updating if condition in doc.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sjitendra committed Oct 26, 2023
1 parent 5e68fa9 commit 2121b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiptapy/templates/doc.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{%- if node.get("attrs", {}).data -%}
{%- if node.attrs and node.attrs.data -%}
<div{% for attr, value in node.attrs.data.items() %} data-{{attr}}="{{value}}"{% endfor %}>
{%- endif -%}
{%- for item in node.content -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
{%- endwith -%}
{%- endfor -%}
{%- if node.get("attrs", {}).data -%}
{%- if node.attrs and node.attrs.data -%}
</div>
{%- endif -%}

0 comments on commit 2121b58

Please sign in to comment.