avoid wrapping in CDATA if special inline 'Format' is used - closes #196
This commit is contained in:
parent
3d216f6295
commit
896b247fe9
@ -129,7 +129,11 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) {
|
||||
if (selfclosing) {
|
||||
xml += '/>\n';
|
||||
} else {
|
||||
xml += '><![CDATA[' + tagcontent + ']]></' + name + '>\n';
|
||||
if (tagcontent.indexOf('<Format') != -1) {
|
||||
xml += '>' + tagcontent + '</' + name + '>\n';
|
||||
} else {
|
||||
xml += '><![CDATA[' + tagcontent + ']]></' + name + '>\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
xml += ' </Rule>\n';
|
||||
|
Loading…
Reference in New Issue
Block a user