Sha256: e696f9d9f7ebe74c37c084c4f5ae63bc74128776f3601ba7de5617b8eb2f4b89

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 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

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.beta.1 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb
asciidoctor-pdf-1.5.0.alpha.18 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb
asciidoctor-pdf-1.5.0.alpha.17 lib/asciidoctor-pdf/prawn-table_ext/cell/text.rb