summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rst_parser.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rst_parser.lua b/src/rst_parser.lua
index 96c14d4..d55924e 100644
--- a/src/rst_parser.lua
+++ b/src/rst_parser.lua
@@ -1562,12 +1562,11 @@ local get_tmpfile = function (category)
end
cnt = cnt + 1
tempfile_count[category] = cnt
- return luatex.registertempfile (
- stringformat ("%s_rst-%s-%d.tmp",
- tex.jobname,
- category,
- cnt)
- )
+ local filename = stringformat ("%s_rst-%s-%d",
+ tex.jobname, category, cnt)
+ return luatex.registertempfile (filename,
+ true,
+ (helpers.rst_debug == true)) --- for debugging generated code
end