Skip to content

Commit

Permalink
remove unnecessary override of default_height on box
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jun 8, 2022
1 parent 659d7d3 commit 126b46b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 126b46b

Please sign in to comment.