diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-10-19 02:07:42 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-19 02:07:42 -0600 |
| commit | 315e00f36a71bc2470bca2e4f4b3976e5012a071 (patch) | |
| tree | f9dc700f09b4344efde952c9a48e05db4bca42a8 /lib | |
| parent | 5d5d1c993e63802295ea3bfabb4e1e374bd4b65d (diff) | |
resolves #1334 fix value of implicit page-count attribute (PR #1336)
- handle case when page numbering and running content don't start on same page
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/pdf/converter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb index 6e122607..2039b1df 100644 --- a/lib/asciidoctor/pdf/converter.rb +++ b/lib/asciidoctor/pdf/converter.rb @@ -3044,7 +3044,7 @@ class Converter < ::Prawn::Document # NOTE find and advance to first non-imported content page to use as model page return unless (content_start_page = state.pages[skip..-1].index {|it| !it.imported_page? }) content_start_page += (skip + 1) - num_pages = page_count - skip + num_pages = page_count - skip_pagenums prev_page_number = page_number go_to_page content_start_page |
