diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2014-03-02 18:04:32 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2018-12-02 21:09:43 +0100 |
commit | 44eada9d05418b25acd5df41ff1cc9e475eaea78 (patch) | |
tree | 868c892a7fa605d822402bc53737a231f00d13c7 /src | |
parent | 78b07d663d694e8081cf6167e5a84a1d5293d233 (diff) | |
download | context-rst-44eada9d05418b25acd5df41ff1cc9e475eaea78.tar.gz |
do not delete temporary files when --debug is specified
Diffstat (limited to 'src')
-rw-r--r-- | src/rst_parser.lua | 11 |
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 |