From 0ae1315f59e467eabf12c9202366f5648974a121 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 4 Jul 2024 15:41:17 +0300 Subject: [PATCH] add .tex and .sty files to text editable --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)