summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2014-03-02 18:04:32 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2018-12-02 21:09:43 +0100
commit44eada9d05418b25acd5df41ff1cc9e475eaea78 (patch)
tree868c892a7fa605d822402bc53737a231f00d13c7 /src
parent78b07d663d694e8081cf6167e5a84a1d5293d233 (diff)
downloadcontext-rst-44eada9d05418b25acd5df41ff1cc9e475eaea78.tar.gz
do not delete temporary files when --debug is specified
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