It appears that the module is eating any trailing whitespace including line enders.

As a result, any custom code that ends with a single-line comment, as

// end custom code

... will be run-in with the resulting generated code.

// end custom code(function() {var ga = document.createElement("script");ga.type = "text/javascript";ga.async = true;ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga, s);})();

Comments

hass’s picture

Status: Active » Closed (works as designed)

Comments are not supported. Make sure you finish every line of code with semicolons.