projects
/
raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ffa8ee7
)
plugins/raphael.export.js
author
Alan Knowles
<alan@roojs.com>
Mon, 23 Jul 2012 06:08:30 +0000
(14:08 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 23 Jul 2012 06:08:30 +0000
(14:08 +0800)
plugins/raphael.export.js
patch
|
blob
|
history
diff --git
a/plugins/raphael.export.js
b/plugins/raphael.export.js
index
c56c819
..
22a4d65
100644
(file)
--- a/
plugins/raphael.export.js
+++ b/
plugins/raphael.export.js
@@
-82,7
+82,9
@@
}).join(' ');
}
}).join(' ');
}
- return '<' + name + ( matrix ? ' transform="matrix(' + matrix.toString().replace(/^matrix\(|\)$/g, '') + ')" ' : ' ' ) + attrs + '>' + content + '</' + name + '>';
+ return '<' + name + ( matrix ? ' transform="matrix(' + matrix.toString().replace(/^matrix\(|\)$/g, '') + ')" ' : ' ' ) + attrs + '>' +
+ escapeXML(content) +
+ '</' + name + '>';
}
/**
}
/**
@@
-143,7
+145,13
@@
{ style: 'text-anchor: middle; ' + styleToString(style) + ';' }
),
node.matrix,
{ style: 'text-anchor: middle; ' + styleToString(style) + ';' }
),
node.matrix,
- tag('tspan', { dy: computeTSpanDy(style.font.size, line + 1, node.attrs['text'].split('\n').length) }, null, text)
+ tag('tspan',
+ {
+ dy: computeTSpanDy(style.font.size, line + 1, node.attrs['text'].split('\n').length)
+ },
+ null,
+ text
+ )
));
});
));
});