소스 검색

[fb] Fix style tabs in file

Romain Rigaux 4 년 전
부모
커밋
dd74b92cd5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      apps/filebrowser/src/filebrowser/views.py

+ 2 - 2
apps/filebrowser/src/filebrowser/views.py

@@ -733,7 +733,7 @@ def display(request, path):
         is_binary = uni_contents.find(i18n.REPLACEMENT_CHAR) != -1
         # Auto-detect mode
         if not mode:
-            mode = is_binary and 'binary' or 'text'
+          mode = is_binary and 'binary' or 'text'
       else:
         # We already have a string.
         uni_contents = contents
@@ -744,7 +744,7 @@ def display(request, path):
       is_binary = uni_contents.find(i18n.REPLACEMENT_CHAR) != -1
       # Auto-detect mode
       if not mode:
-          mode = is_binary and 'binary' or 'text'
+        mode = is_binary and 'binary' or 'text'
 
   # Get contents as bytes
   if mode == "binary":