diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-06-08 15:37:28 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-06-08 15:42:34 -0600 |
| commit | 126b46bcd797554dc80b00cd8b586211aa23c178 (patch) | |
| tree | bb117c96c2172fe6a57ea3a2d30d5db4c6d0322f | |
| parent | 659d7d34b9746132fb170ddb3c3e837724fe43a1 (diff) | |
remove unnecessary override of default_height on box
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 7fa30ce2..bb7ec2cc 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 0e573840..9eb67c59 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 @@ Prawn::Text::Formatted::Box.prepend (Module.new do @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 |
