diff options
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | lib/asciidoctor/pdf/converter.rb | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 3e28c2f3..12f99047 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -25,6 +25,7 @@ Bug Fixes:: * collapse space in front of hidden index term (#2061) * delete dests on page before deleting it (keeps generated PDF clean of obsolete destinations) * don't call `arrange_section` if section title is hidden +* remove `theme_font` enclosure around call to `start_new_chapter` and `start_new_part` == 2.0.0.alpha.1 (2022-04-20) - @mojavelinux diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb index b62ecc5a..e583693b 100644 --- a/lib/asciidoctor/pdf/converter.rb +++ b/lib/asciidoctor/pdf/converter.rb @@ -672,13 +672,13 @@ module Asciidoctor if part unless @theme.heading_part_break_before == 'auto' start_new = true - theme_font(:heading, level: hlevel) { start_new_part sect } + start_new_part sect end elsif chapterlike if @theme.heading_chapter_break_before != 'auto' || (@theme.heading_part_break_after == 'always' && sect == sect.parent.sections[0]) start_new = true - theme_font(:heading, level: hlevel) { start_new_chapter sect } + start_new_chapter sect end end arrange_section sect, title, hopts unless hidden || start_new || at_page_top? |
