lib/prawn/svg/elements/text_component.rb in prawn-svg-0.31.0 vs lib/prawn/svg/elements/text_component.rb in prawn-svg-0.32.0

- old
+ new

@@ -144,13 +144,13 @@ opts[:pad_to_width] = state.text.text_length end end if remaining - add_call 'draw_text', text[0..0], opts.dup + add_call 'draw_text', text[0..0], **opts.dup text = text[1..-1] else - add_call 'draw_text', text, opts.dup + add_call 'draw_text', text, **opts.dup # we can get to this path with rotations still pending # solve this by shifting them out by the number of # characters we've just drawn shift = text.length - 1