avoid wrapping in CDATA if special inline 'Format' is used - closes #196

This commit is contained in:
Dane Springmeyer 2012-10-05 17:03:13 -07:00
parent 3d216f6295
commit 896b247fe9

View File

@ -128,10 +128,14 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) {
}
if (selfclosing) {
xml += '/>\n';
} else {
if (tagcontent.indexOf('<Format') != -1) {
xml += '>' + tagcontent + '</' + name + '>\n';
} else {
xml += '><![CDATA[' + tagcontent + ']]></' + name + '>\n';
}
}
}
xml += ' </Rule>\n';
return xml;
};