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:
parent
3ba9f9d5c7
commit
0ae1315f59
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user