From 126b46bcd797554dc80b00cd8b586211aa23c178 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 8 Jun 2022 15:37:28 -0600 Subject: [PATCH] remove unnecessary override of default_height on box --- CHANGELOG.adoc | 1 - lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb | 5 ----- 2 files changed, 6 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 7fa30ce23..bb7ec2cc9 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -19,7 +19,6 @@ Bug Fixes:: * fix x position of SVG when advanced to next column of column box * `at_page_top?` should consider top of column box to be top of page * prevent SVG image taller than column from being advanced to next column -* fix computation of default height for formatted box inside column box * don't push section that follows index section in article to new page if last page of index does not extend to bottom of page == 2.0.7 (2022-06-03) - @mojavelinux diff --git a/lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb b/lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb index 0e5738405..9eb67c599 100644 --- a/lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb +++ b/lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb @@ -18,11 +18,6 @@ def initialize formatted_text, options = {} @force_justify = options[:force_justify] end - def default_height - return @document.cursor if Prawn::Document::ColumnBox === (frame = @document.bounds) && frame.stretchy? - super - end - def draw_fragment_overlay_styles fragment if (underline = (styles = fragment.styles).include? :underline) || (styles.include? :strikethrough) (doc = fragment.document).save_graphics_state do