mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-08 23:20:03 +00:00
Take newlines out of JS comments
This commit is contained in:
parent
b90688042c
commit
cde03baf24
@ -62,6 +62,7 @@ JavaScriptParser.prototype.parse = function(type,code) {
|
|||||||
element = "span";
|
element = "span";
|
||||||
classes.push("javascript-line-comment");
|
classes.push("javascript-line-comment");
|
||||||
content.push($tw.Tree.Text("//"));
|
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.apply(content,self.wiki.parseText("text/x-tiddlywiki-run",text).tree);
|
||||||
content.push($tw.Tree.Text("\n"));
|
content.push($tw.Tree.Text("\n"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user