Browse Source

keep indention when viewing text files

tags/v3.0
Robin Appelman 13 years ago
parent
commit
8ce564ccfe
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      plugins/textviewer/textviewer.js

+ 2
- 0
plugins/textviewer/textviewer.js View File

@@ -27,6 +27,8 @@ OC_TextViewer.hideText=function(){

OC_TextViewer.prepareText=function(text){
text=text.replace(/\n/g,"<br/>\n");
text=text.replace(/ /g,"&nbsp;");
text=text.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");
return text;
}


Loading…
Cancel
Save