Skip to content

Commit

Permalink
Fix orphaned headlines
Browse files Browse the repository at this point in the history
see #88
  • Loading branch information
bertfrees committed Apr 16, 2018
1 parent 43356d3 commit 630bc43
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ level4 ~ level4 { volume-break-inside: -obfl-keep(5); }
level5 ~ level5 { volume-break-inside: -obfl-keep(4); }
level6 ~ level6 { volume-break-inside: -obfl-keep(3); }

@for $i from 1 through 6 {
h#{$i} {
-obfl-keep-with-next-sheets: 1;
}
level#{$i} ~ level#{$i} > h#{$i} {
-obfl-keep-with-next-sheets: 0;
}
}

/* Volume breaking rules based on level depth: EPUB/HTML */
html:has(body ~ body) > body, html:not(:has(body ~ body)) > body > section {
&:not(.pef-titlepage):not(.pef-about):not(:has(> #generated-volume-toc)):not(:has(> #generated-document-toc)) {
Expand Down

0 comments on commit 630bc43

Please sign in to comment.