diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-04-27 04:41:10 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-04-27 04:41:10 -0600 |
| commit | 6c7e4db5bd3e03c0be18019c2351ef7a16c5abc8 (patch) | |
| tree | bf92e35c6944e9bd7652f496ecf9aa431b312ab2 | |
| parent | 2e6decd6053a90d1988d8631851f554ebb276109 (diff) | |
remove theme_font enclosure around call to start_new_chapter and start_new_part
| -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? |
