diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-06-06 01:43:08 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-06-06 01:43:08 -0600 |
| commit | 6253cebcecdfb0fa3ae1f4eee77ec2bb640b534b (patch) | |
| tree | aa57922fcd2d4d91e84046e93aa4aefd705832b3 /lib | |
| parent | f530274aab7b1d9ba35429014d4a400ef764de4b (diff) | |
enable Lint/FloatComparison but disable in test suite; add exclusion in main code
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/pdf/converter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb index 8b56a314..5ab67cea 100644 --- a/lib/asciidoctor/pdf/converter.rb +++ b/lib/asciidoctor/pdf/converter.rb @@ -320,8 +320,8 @@ module Asciidoctor end unless page_count < body_start_page_number - layout_running_content :header, doc, num_front_matter_pages, body_start_page_number unless doc.noheader || @theme.header_height.to_f == 0 - layout_running_content :footer, doc, num_front_matter_pages, body_start_page_number unless doc.nofooter || @theme.footer_height.to_f == 0 + layout_running_content :header, doc, num_front_matter_pages, body_start_page_number unless doc.noheader || @theme.header_height.to_f == 0 # rubocop:disable Lint/FloatComparison + layout_running_content :footer, doc, num_front_matter_pages, body_start_page_number unless doc.nofooter || @theme.footer_height.to_f == 0 # rubocop:disable Lint/FloatComparison end add_outline doc, (doc.attr 'outlinelevels', toc_num_levels), toc_page_nums, num_front_matter_pages[1], has_front_cover |
