diff --git a/www/extras/yui-webgui/build/code-editor/code-editor.js b/www/extras/yui-webgui/build/code-editor/code-editor.js index 955bdeb83..d153210c6 100755 --- a/www/extras/yui-webgui/build/code-editor/code-editor.js +++ b/www/extras/yui-webgui/build/code-editor/code-editor.js @@ -573,6 +573,10 @@ // Remove existing highlighting var html = this.getEditorText(); + // Fix line breaks + html = html.replace( /\n/g, "
"); + html = html.replace( /\t/g, "    " ); + // Apply new highlighting for (var i = 0; i < this.keywords.length; i++) { html = html.replace(this.keywords[i].code, this.keywords[i].tag);