This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
nextcloud
mirror of
https://github.com/nextcloud/server.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
994
Wiki
Activity
Browse Source
keep indention when viewing text files
tags/v3.0
Robin Appelman
13 years ago
parent
420178bec8
commit
8ce564ccfe
1 changed files
with
2 additions
and
0 deletions
Split View
Show Diff Stats
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," ");
text=text.replace(/\t/g," ");
return text;
}
Write
Preview
Loading…
Cancel
Save