Fix empty name value resulting in non closed tag
This commit is contained in:
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 {
|
||||
|
6
test/rendering-mss/empty_name.mss
Normal file
6
test/rendering-mss/empty_name.mss
Normal file
@ -0,0 +1,6 @@
|
||||
#poi-point {
|
||||
text-name: "";
|
||||
text-face-name: "DejaVu Sans Book";
|
||||
text-size: 10;
|
||||
text-fill: chocolate;
|
||||
}
|
5
test/rendering-mss/empty_name.xml
Normal file
5
test/rendering-mss/empty_name.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user