1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-16 05:38:05 +00:00

Removed mistaken suppression of trailing newlines in JS comments

This commit is contained in:
Jeremy Ruston
2012-06-09 22:39:13 +01:00
parent 622884cd5d
commit e88873e3a8
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,6 @@ JavaScriptParser.prototype.parse = function(type,code) {
element = "span";
classes.push("javascript-line-comment");
content.push($tw.Tree.Text("//"));
text = text.replace(/\r?\n/mg,"");
content.push.apply(content,self.wiki.parseText("text/x-tiddlywiki-run",text).tree);
content.push($tw.Tree.Text("\n"));
}