summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-07-04 15:41:17 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2024-07-04 15:41:17 +0300
commit0ae1315f59e467eabf12c9202366f5648974a121 (patch)
tree1ca27d808c0457971403f5111cbc4e30cba74520 /core/views/expo.py
parent3ba9f9d5c784d042a7a7dfa0556a8eafe8e754d8 (diff)
downloadtroggle-0ae1315f59e467eabf12c9202366f5648974a121.tar.gz
troggle-0ae1315f59e467eabf12c9202366f5648974a121.tar.bz2
troggle-0ae1315f59e467eabf12c9202366f5648974a121.zip
add .tex and .sty files to text editable
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 4902502..0a63ce3 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -382,7 +382,7 @@ def editexpopage(request, path):
# detect if this is a text file for editing
filepath = Path(settings.EXPOWEB) / path
- if filepath.suffix == ".txt":
+ if filepath.suffix in [".txt", ".sty", ".tex"]:
print("Editing TEXT file", filepath)
return edittxtpage(request, path, filepath)