diff --git a/lib/carto/tree/definition.js b/lib/carto/tree/definition.js index cf2eb28..bfe4fd0 100644 --- a/lib/carto/tree/definition.js +++ b/lib/carto/tree/definition.js @@ -129,7 +129,7 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) { if (selfclosing) { xml += '/>\n'; } else { - if (tagcontent && tagcontent.indexOf('<') != -1) { + if (tagcontent.indexOf('\n'; } else { xml += '>\n';