Revert "symbolizersToXML: Do not assume tagcontent has a value"
This reverts commit c89ed510ff
.
A different fix was committed upstream, and I'm going to
cherry-pick that one.
This commit is contained in:
parent
8d4d1c8a50
commit
6745bdf634
@ -129,7 +129,7 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) {
|
|||||||
if (selfclosing) {
|
if (selfclosing) {
|
||||||
xml += '/>\n';
|
xml += '/>\n';
|
||||||
} else {
|
} else {
|
||||||
if (tagcontent && tagcontent.indexOf('<') != -1) {
|
if (tagcontent.indexOf('<Format') != -1) {
|
||||||
xml += '>' + tagcontent + '</' + name + '>\n';
|
xml += '>' + tagcontent + '</' + name + '>\n';
|
||||||
} else {
|
} else {
|
||||||
xml += '><![CDATA[' + tagcontent + ']]></' + name + '>\n';
|
xml += '><![CDATA[' + tagcontent + ']]></' + name + '>\n';
|
||||||
|
Loading…
Reference in New Issue
Block a user