Skip to content

Commit 123bbae

Browse files
committed
snapshot/tosvg: clean tspan elements for svg export
1 parent 9c68ec3 commit 123bbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/tosvg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = function toSVG(gd, format, scale) {
8888
// fill whatever container it's displayed in regardless of plot size.
8989
svg.node().style.background = '';
9090

91-
svg.selectAll('text')
91+
svg.selectAll('text,tspan')
9292
.attr({'data-unformatted': null, 'data-math': null})
9393
.each(function() {
9494
var txt = d3.select(this);

0 commit comments

Comments
 (0)