From: Alan Knowles Date: Mon, 23 Jul 2012 07:06:37 +0000 (+0800) Subject: plugins/raphael.export.js X-Git-Url: http://git.roojs.org/?p=raphael;a=commitdiff_plain;h=cbdf30a0301f69def06ce27f730b47eec7873e12 plugins/raphael.export.js --- diff --git a/plugins/raphael.export.js b/plugins/raphael.export.js index 82065de..76aac66 100644 --- a/plugins/raphael.export.js +++ b/plugins/raphael.export.js @@ -111,7 +111,8 @@ */ function styleToString(style) { // TODO figure out what is 'normal' - return 'font: normal normal normal 10px/normal ' + style.font.family + ( style.font.size === null ? '' : '; font-size: ' + style.font.size + 'px' ); + return 'font: normal normal normal 10px/normal ' + style.font.family + + ( style.font.size === null ? '' : '; font-size: ' + style.font.size + 'px' ); } /** @@ -130,11 +131,11 @@ var serializer = { 'text': function(node) { style = extractStyle(node); - + Roo.log(style); var tags = new Array; map(node.attrs['text'].split('\n'), function(text, iterable, line) { - line = line || 0; + line = line || 0; tags.push(tag( 'text', reduce( @@ -148,7 +149,8 @@ return initial; }, - { style: 'text-anchor: middle; ' + styleToString(style) + ';' } + { + style: 'text-anchor: middle; ' + styleToString(style) + ';' } ), node.matrix, tag('tspan',