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:
Sandro Santilli 2013-09-11 17:26:45 +02:00
parent 8d4d1c8a50
commit 6745bdf634

View File

@ -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';