manual/text/paragraph_indentation.rb in prawn-1.0.0 vs manual/text/paragraph_indentation.rb in prawn-1.1.0
- old
+ new
@@ -1,7 +1,7 @@
# encoding: utf-8
-#
+#
# Prawn strips all whitespace from the beginning and the end of strings so there
# are two ways to indent paragraphs:
#
# One is to use non-breaking spaces which Prawn won't strip. One shortcut to
# using them is the <code>Prawn::Text::NBSP</code>.
@@ -12,14 +12,14 @@
#
require File.expand_path(File.join(File.dirname(__FILE__),
%w[.. example_helper]))
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
-Prawn::Example.generate(filename) do
+Prawn::ManualBuilder::Example.generate(filename) do
# Using non-breaking spaces
text " " * 10 + "This paragraph won't be indented. " * 10 +
"\n#{Prawn::Text::NBSP * 10}" + "This one will with NBSP. " * 10
-
+
move_down 20
text "This paragraph will be indented. " * 10 +
"\n" + "This one will too. " * 10,
:indent_paragraphs => 60
end