Sha256: dbd12900ec5982c228a2177714865e28500ff984df428896eedac8e4b19bd9a9

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

module Prawn::Text::Formatted::ProtectBottomGutter
  def enough_height_for_this_line?
    return super unless @arranger.finished?
    begin
      @height -= @bottom_gutter
      super
    ensure
      @height += @bottom_gutter
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
asciidoctor-pdf-2.0.0 lib/asciidoctor/pdf/ext/prawn/formatted_text/protect_bottom_gutter.rb
asciidoctor-pdf-2.0.0.rc.1 lib/asciidoctor/pdf/ext/prawn/formatted_text/protect_bottom_gutter.rb
asciidoctor-pdf-2.0.0.beta.2 lib/asciidoctor/pdf/ext/prawn/formatted_text/protect_bottom_gutter.rb
asciidoctor-pdf-2.0.0.beta.1 lib/asciidoctor/pdf/ext/prawn/formatted_text/protect_bottom_gutter.rb
asciidoctor-pdf-2.0.0.alpha.3 lib/asciidoctor/pdf/ext/prawn/formatted_text/protect_bottom_gutter.rb
asciidoctor-pdf-2.0.0.alpha.2 lib/asciidoctor/pdf/ext/prawn/formatted_text/protect_bottom_gutter.rb