Skip to content
Snippets Groups Projects
Commit 000d0a03 authored by Pedro Beschorner Marin's avatar Pedro Beschorner Marin
Browse files

Fixed multiline text annotations in playback

parent b52bf09a
No related branches found
No related tags found
No related merge requests found
......@@ -442,7 +442,13 @@ def storeTextShape
$xml.switch do
$xml.foreignObject(:color => "##{$colour_hex}", :width => width, :height => height, :x => "#{$originX}", :y => "#{$originY}") do
$xml.p(:xmlns => "http://www.w3.org/1999/xhtml", :style => "margin-top: 0; margin-bottom: 0;") do
$xml.text($textValue)
lines = $textValue.split("\n")
lines.each_with_index do |line, index|
$xml.text(line)
if index + 1 < lines.size
$xml.br
end
end
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment