2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

add .tex and .sty files to text editable

This commit is contained in:
Philip Sargent 2024-07-04 15:41:17 +03:00
parent 3ba9f9d5c7
commit 0ae1315f59

View File

@ -382,7 +382,7 @@ def editexpopage(request, path):
# detect if this is a text file for editing # detect if this is a text file for editing
filepath = Path(settings.EXPOWEB) / path filepath = Path(settings.EXPOWEB) / path
if filepath.suffix == ".txt": if filepath.suffix in [".txt", ".sty", ".tex"]:
print("Editing TEXT file", filepath) print("Editing TEXT file", filepath)
return edittxtpage(request, path, filepath) return edittxtpage(request, path, filepath)