fixed #10885: code editor breaks JS comments

This commit is contained in:
Doug Bell 2009-09-15 14:37:03 -05:00
parent 740066cebc
commit e161afd5c0
2 changed files with 2 additions and 1 deletions

View file

@ -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;
};