manual/text/paragraph_indentation.rb in prawn-2.3.0 vs manual/text/paragraph_indentation.rb in prawn-2.4.0
- old
+ new
@@ -17,16 +17,15 @@
# 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,
+ 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
+ text "#{'This paragraph will be indented. ' * 10}\n#{'This one will too. ' * 10}",
+ indent_paragraphs: 60,
+ direction: :rtl
end