diff --git a/lib/carto/tree/style.js b/lib/carto/tree/style.js
index 31049dd..3755001 100644
--- a/lib/carto/tree/style.js
+++ b/lib/carto/tree/style.js
@@ -28,19 +28,19 @@ tree.StyleXML = function(name, attachment, definitions, env) {
if (image_filters.length) {
attrs_xml += ' image-filters="' + image_filters.map(function(f) {
return f.ev(env).toXML(env, true, ',', 'image-filter');
- }).join(',') + '" ';
+ }).join(',') + '"';
}
if (comp_op.length) {
- attrs_xml += ' comp-op="' + comp_op[0].value.ev(env).toString() + '" ';
+ attrs_xml += ' comp-op="' + comp_op[0].value.ev(env).toString() + '"';
}
if (opacity.length) {
- attrs_xml += ' opacity="' + opacity[0].value.ev(env).toString() + '" ';
+ attrs_xml += ' opacity="' + opacity[0].value.ev(env).toString() + '"';
}
var rule_string = rules.join('');
if (!attrs_xml && !rule_string) return '';
- return '';
+ return '';
};
})(require('../tree'));
diff --git a/test/rendering-mss/quoted_attr.xml b/test/rendering-mss/quoted_attr.xml
index 11da22c..4d49616 100644
--- a/test/rendering-mss/quoted_attr.xml
+++ b/test/rendering-mss/quoted_attr.xml
@@ -1,4 +1,4 @@
-
\ No newline at end of file
diff --git a/test/rendering-mss/style-level-prop-only2.xml b/test/rendering-mss/style-level-prop-only2.xml
index 1e6abb3..9c08dcd 100644
--- a/test/rendering-mss/style-level-prop-only2.xml
+++ b/test/rendering-mss/style-level-prop-only2.xml
@@ -1,2 +1,2 @@
-
\ No newline at end of file
diff --git a/test/rendering-mss/style-level-prop-only3.xml b/test/rendering-mss/style-level-prop-only3.xml
index 43e4bf0..56a1f46 100644
--- a/test/rendering-mss/style-level-prop-only3.xml
+++ b/test/rendering-mss/style-level-prop-only3.xml
@@ -1,2 +1,2 @@
-
\ No newline at end of file