Skip to content

Commit

Permalink
Indent right side on RTL text
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Oct 23, 2014
1 parent ce465fa commit 11a132d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/prawn/text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,10 @@ def draw_remaining_formatted_text_on_new_pages(remaining_text, options)
end

def draw_indented_formatted_line(string, options)
indent(@indent_paragraphs) do
gap = options.fetch(:direction, :ltr) == :ltr ?
[@indent_paragraphs, 0] : [0, @indent_paragraphs]

indent(*gap) do
fill_formatted_text_box(string, options.dup.merge(:single_line => true))
end
end
Expand Down

0 comments on commit 11a132d

Please sign in to comment.