module Prawn::Text::Formatted::ProtectBottomGutter

Public Instance Methods

enough_height_for_this_line?() click to toggle source
Calls superclass method
# File lib/asciidoctor/pdf/ext/prawn/formatted_text/protect_bottom_gutter.rb, line 4
def enough_height_for_this_line?
  if @arranger.finished? && @arranger.fragments.none? {|it| it.format_state[:full_height] }
    begin
      @height -= @bottom_gutter
      super
    ensure
      @height += @bottom_gutter
    end
  else
    super
  end
end