Fix empty name value resulting in non closed tag

This commit is contained in:
Yohan Boniface 2013-09-21 17:05:10 +02:00
parent 1c5c84587e
commit 6b51cd370b
3 changed files with 12 additions and 1 deletions

View File

@ -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 {

View File

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

View File

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