Skip to content

Commit

Permalink
fix: xhtml2pdf bug on breaking elements
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Dec 18, 2024
1 parent ac057a8 commit e368b42
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions regdid/templates/regdid_generate_pdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div id="header_content"><image src="{% static 'images/unical_logo.svg' %}" style="width: 6.1cm; height: 1.1cm;"></image></div>
<!-- Content for Static Frame 'footer_frame' -->
<div id="footer_content" style="text-align:center;"><pdf:pagenumber />&nbsp;</div>

<!-- first page -->
<div class="reg-title content">
Regolamento didattico del<br>
Expand All @@ -62,26 +62,26 @@
</span>
</div>
<!-- /first page -->

<!-- toc pages -->
<pdf:nexttemplate name="toc_page" />
<div>
<pdf:nextpage />
</div>
<pdf:nextpage />
</div>

<span class="index content">Indice</span>
<div class="toc_text">
<pdf:toc />
<pdf:toc />
</div>
<!-- /toc pages -->

<!-- regular pages -->
<pdf:nexttemplate name="regular_page" />

<div>
<pdf:nextpage />
</div>
<pdf:nextpage />
</div>

<!-- content -->
<div class="content">
{% autoescape off %}
Expand All @@ -101,6 +101,7 @@
</div>
<div class="text">
{% if article.testo_it %}
<span>&nbsp;</span>
{{ article.testo_it }}
{% else %}
<p>
Expand All @@ -117,6 +118,7 @@
Art. {{struct.numero}} {% latin_enum forloop.counter0 %} - {{sub_art.titolo_it}}
</div>
<div class="text">
<span>&nbsp;</span>
{{sub_art.testo_it}}
</div>
<div class="art-separator">&nbsp;</div>
Expand Down

0 comments on commit e368b42

Please sign in to comment.