From 13c5d14a9fb102d1f5ea78fcd58b6e2a30fe81b7 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 29 Dec 2024 02:04:55 +0000 Subject: Allow edit of another non .txt file --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/views/expo.py b/core/views/expo.py index 3432ac3..d0b721e 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -419,7 +419,7 @@ def editexpopage(request, path): # detect if this is a text file for editing filepath = Path(settings.EXPOWEB) / path - if filepath.suffix in [".txt", ".sty", ".tex"] or filepath.name == "Makefile": + if filepath.suffix in [".txt", ".sty", ".tex"] or filepath.name == "Makefile" or filepath.name == "cave-number-index": print("Editing TEXT file", filepath) return edittxtpage(request, path, filepath) -- cgit v1.2.3