Sha256: 5ad3090c7b491dc2fe7bbbaa898d6da5dd1f640b6b42b44f8c8ed1a6d5df5b95

Contents?: true

Size: 401 Bytes

Versions: 7

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true
class Prawn::Table::Cell::Text
  # Override draw_content method to drop cursor advancement
  remove_method :draw_content
  def draw_content
    with_font do
      with_text_color do
        (text_box width: spanned_content_width + FPTolerance,
            height: spanned_content_height + FPTolerance,
            at: [0, @pdf.cursor]).render
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.beta.8 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.0.beta.7 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.0.beta.6 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.0.beta.5 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb
asciidoctor-pdf-1.5.0.beta.4 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb
asciidoctor-pdf-1.5.0.beta.3 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb
asciidoctor-pdf-1.5.0.beta.2 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb