keep indention when viewing text files

remotes/origin/stable
Robin Appelman 2010-09-08 13:49:59 +07:00
parent 420178bec8
commit 8ce564ccfe
1 changed files with 2 additions and 0 deletions

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