Fix empty name value resulting in non closed tag

cdb-prod
Yohan Boniface 11 years ago
parent 1c5c84587e
commit 6b51cd370b

@ -139,7 +139,7 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) {
}
if (selfclosing) {
xml += '/>\n';
} else if (tagcontent) {
} else if (typeof tagcontent !== "undefined") {
if (tagcontent.indexOf('<') != -1) {
xml += '>' + tagcontent + '</' + name + '>\n';
} else {

@ -0,0 +1,6 @@
#poi-point {
text-name: "";
text-face-name: "DejaVu Sans Book";
text-size: 10;
text-fill: chocolate;
}

@ -0,0 +1,5 @@
<Style name="style" filter-mode="first">
<Rule>
<TextSymbolizer face-name="DejaVu Sans Book" size="10" fill="#d2691e" ><![CDATA[]]></TextSymbolizer>
</Rule>
</Style>
Loading…
Cancel
Save