File: indentation_across_pagebreaks.rb

package info (click to toggle)
ruby-prawn 1.0.0~rc1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,248 kB
  • sloc: ruby: 17,499; sh: 44; makefile: 17
file content (15 lines) | stat: -rw-r--r-- 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# As of 2009.02.13, indentation does not work across page breaks. [#86]

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require "prawn/core"

Prawn::Document.generate("indent_page_breaks.pdf") do
  text "heading", :size => 14, :style => :bold

  indent(20) do
    100.times do
      text "test"
    end
  end
end