Sha256: ec321ac32ee800f17f45a79bce9f1970f3a2f3b03b929aac7d1a1c1b62155331

Contents?: true

Size: 410 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.6.2 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.6.1 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.6.0 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.4 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.3 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.2 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.1 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.0 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.0.rc.3 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.0.rc.2 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb
asciidoctor-pdf-1.5.0.rc.1 lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb