{"comment":{"created_at":"2011-10-22T15:01:12Z","body":"I'd like to reproduce this, but just getting there is extremely painful. There is some serious work needed on the error handling and reporting, as can be seen again in the following command trace:\r\n\r\n```\r\n#> cat test.less \r\n.test {\r\n    width: 10px;\r\n}\r\n\r\n#> mvn clean package\r\n...\r\n\r\n#> java -jar target/lesscss-engine-1.1.4-jar-with-dependencies.jar test.less Oct 22, 2011 4:56:14 PM com.asual.lesscss.LessEngine <init>\r\nWARNING: Using implementation version: Rhino 1.6 release 7 2007 08 19\r\nException in thread \"main\" com.asual.lesscss.LessException: Parse Error: Syntax Error on line 1 (line 1, column 9) near\r\ntest.less\r\n\tat com.asual.lesscss.LessEngine.parseLessException(LessEngine.java:184)\r\n\tat com.asual.lesscss.LessEngine.compile(LessEngine.java:82)\r\n\tat com.asual.lesscss.LessEngine.main(LessEngine.java:196)\r\n\r\n#> java -version\r\njava version \"1.6.0_26\"\r\nJava(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)\r\nJava HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)\r\n´´´\r\n\r\nThis is using a downloaded copy of the GitHub repo from just now on my Mac... :-(","updated_at":"2011-10-22T15:01:12Z","url":"https://api.github.com/repos/asual/lesscss-engine/issues/comments/2490403","id":2490403,"user":{"gravatar_id":"e3111439ea59fa795e7d6ade90fa0331","avatar_url":"https://secure.gravatar.com/avatar/e3111439ea59fa795e7d6ade90fa0331?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cederberg","id":11371,"login":"cederberg"}},"action":"created","issue":{"number":16,"created_at":"2011-10-07T11:17:14Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Using version 1.0.41, I get escaped newline chars in the output...\r\n\r\n```java\r\ncss = lessEngine.compile(MyClass.class.getResource(\"/test.less\"));\r\n// FIXME: Why is the returned string JS-escaped?!?\r\ncss = css.replace(\"\\\\n\", \"\\n\");\r\n```\r\n\r\nAlso, the example in README.md is misleading. The returned value is the compiled CSS text, NOT a url...\r\n\r\n```java\r\n// Compiles an URL resource\r\nString css = engine.compile(getClass().getClassLoader().getResource(\"META-INF/test.less\"));\r\n```","comments":2,"title":"JS character escapes in the result","updated_at":"2011-10-22T15:01:12Z","url":"https://api.github.com/repos/asual/lesscss-engine/issues/16","id":1842454,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"e3111439ea59fa795e7d6ade90fa0331","avatar_url":"https://secure.gravatar.com/avatar/e3111439ea59fa795e7d6ade90fa0331?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cederberg","id":11371,"login":"cederberg"},"html_url":"https://github.com/asual/lesscss-engine/issues/16","labels":[],"state":"open"},"legacy":{"issue_id":1842454,"comment_id":2490403}}