fixed #10885: code editor breaks JS comments
This commit is contained in:
parent
740066cebc
commit
e161afd5c0
2 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,7 @@
|
|||
html = html.replace(/ ?<br>/gi,'\n');
|
||||
html = html.replace(/<[^>]+>/g,'');
|
||||
// Remove spaces at end of lines
|
||||
html = html.replace(/ +\r?\n/g,"");
|
||||
html = html.replace(/ +(\r?)\n/g,"$1\n");
|
||||
return html;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue