Browse Source

DIV-884: Prevent last item to break on Form52.

pull/160/head
Charles Shin 7 years ago
parent
commit
ee1b9f573d
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      edivorce/apps/core/static/css/weasyprint.css
  2. +1
    -1
      edivorce/apps/core/templates/pdf/form52.html

+ 4
- 0
edivorce/apps/core/static/css/weasyprint.css View File

@ -287,6 +287,10 @@ ol.force-break-last > li:last-child {
page-break-before: always;
}
ol.avoid-break-last > li:last-child {
page-break-inside: avoid;
}
.avoid-break-alone {
page-break-before: avoid;
page-break-inside: avoid;


+ 1
- 1
edivorce/apps/core/templates/pdf/form52.html View File

@ -92,7 +92,7 @@
<p>THIS COURT ORDERS that BY CONSENT:</p>
{% endif %}
<ol class="numbered-paragraphs">
<ol class="numbered-paragraphs avoid-break-last">
{% if derived.wants_spousal_support %}
<li>{{ responses.spouse_support_details }}&nbsp;</li>
{% endif %}


Loading…
Cancel
Save