This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Merge pull request
#25
from bcgov/DIV-884
DIV-884: Prevent last item to break on Form52.
pull/160/head
Charles Shin
7 years ago
committed by
GitHub
parent
46e3f16800
ee1b9f573d
commit
c5032cf710
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
2 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
edivorce/apps/core/static/css/weasyprint.css
+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 }}
<
/
li
>
{% endif %}
Write
Preview
Loading…
Cancel
Save