{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/b5b10166bbb2819630331183d40b82fa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b5b10166bbb2819630331183d40b82fa","url":"https://api.github.com/users/JasonBro","login":"JasonBro","id":1178225},"milestone":null,"assignee":null,"updated_at":"2011-11-07T15:41:37Z","labels":[],"closed_at":null,"comments":0,"url":"https://api.github.com/repos/BorisMoore/jsrender/issues/17","body":"Hi Boris,\r\n\r\nWhen I run the current version of JSRender's 01_inserting-data.html page I get an Error: Unterminated string constant exception due to newlines in the generated function javascript. I fixed it by changing the end of the buildTmplFunction function to \r\n\r\n\ttry {\r\n\t\tret = new Function(\"$data, $view\", (code.slice(0, -1) + \";return result;\\n\\n}catch(e){return views.err(e);}\").replace(/\\n|\\r/g, \" \"));\r\n\t} catch(e) {\r\n\r\n...but this might not be the best way to fix it!\r\n\r\nCheers\r\n\r\nJason","html_url":"https://github.com/BorisMoore/jsrender/issues/17","title":"Error: Unterminated string constant in IE7","number":17,"id":2163795,"created_at":"2011-11-07T15:41:37Z"},"action":"opened"}