Sha256: c18f512e57608dc9fe3fa8ad04d825e27b8f18608f52ac94f40f8a2b4a479c09

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.alpha.16 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb
asciidoctor-pdf-1.5.0.alpha.15 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb