We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd60a2b commit 811cf71Copy full SHA for 811cf71
lib/prawn/svg/elements/text_component.rb
@@ -9,6 +9,10 @@ def parse
9
raise SkipElementError, "<text> elements are not supported in clip paths"
10
end
11
12
+ if state.text.nil?
13
+ raise SkipElementError, "attempted to <use> an component inside a text element, this is not supported"
14
+ end
15
+
16
state.text.x = (attributes['x'] || "").split(COMMA_WSP_REGEXP).collect { |n| x(n) }
17
state.text.y = (attributes['y'] || "").split(COMMA_WSP_REGEXP).collect { |n| y(n) }
18
state.text.dx = (attributes['dx'] || "").split(COMMA_WSP_REGEXP).collect { |n| x_pixels(n) }
0 commit comments