Skip to content

Commit 3c87c1b

Browse files
authored
avoid using internal .data field (#441)
* avoid using internal `.data` field
1 parent 8e7e1a2 commit 3c87c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/svg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using Measures
99
[context(), fill("green"), circle([0.25, 0.75], [0.5], [0.25])])
1010
img = SVG(8cm, 6cm, false)
1111
draw(img, c)
12-
svgxml = root(parsexml(String(img.out.data)))
12+
svgxml = root(parsexml(String(take!(img.out))))
1313
# get all grouped values that have the fill attribute
1414
fillcolors = nodecontent.(findall("//ns:g[@fill]/@fill", svgxml, ["ns"=>namespace(svgxml)]))
1515
# there should only be a single color (because green should clobber the red

0 commit comments

Comments
 (0)