manual/text/paragraph_indentation.rb in prawn-1.3.0 vs manual/text/paragraph_indentation.rb in prawn-2.0.0
- old
+ new
@@ -21,6 +21,14 @@
move_down 20
text "This paragraph will be indented. " * 10 +
"\n" + "This one will too. " * 10,
:indent_paragraphs => 60
+
+ move_down 20
+
+ text "FROM RIGHT TO LEFT:"
+ text "This paragraph will be indented. " * 10 +
+ "\n" + "This one will too. " * 10,
+ :indent_paragraphs => 60, :direction => :rtl
+
end