Sha256: d680c5df1cb8a7ea9949a5692bdc34666582ec35e086ae4b07704cd750205c2e

Contents?: true

Size: 471 Bytes

Versions: 35

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

require 'prawn/table'

Prawn::Table.prepend (Module.new do
  def initial_row_on_initial_page
    return 0 if fits_on_page? @pdf.bounds.height
    height_required = (row (0..number_of_header_rows)).height_with_span
    return -1 if fits_on_page? height_required, true
    @pdf.bounds.move_past_bottom
    0
  end
end)

require_relative 'prawn-table/cell'
require_relative 'prawn-table/cell/asciidoc'
require_relative 'prawn-table/cell/text'

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
asciidoctor-pdf-2.3.19 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.18 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.17 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.16 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.15 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.14 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.13 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.12 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.11 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.10 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.9 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.8 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.7 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.6 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.5 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.4 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.3 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.2 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.1 lib/asciidoctor/pdf/ext/prawn-table.rb
asciidoctor-pdf-2.3.0 lib/asciidoctor/pdf/ext/prawn-table.rb