Take newlines out of JS comments

print-window-tiddler
Jeremy Ruston 2012-06-09 22:25:31 +01:00
rodzic b90688042c
commit cde03baf24
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -62,6 +62,7 @@ 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"));
}