diff options
author | Norbert Preining <norbert@preining.info> | 2020-03-13 03:02:35 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-03-13 03:02:35 +0000 |
commit | 7f2b2a9d664831db3f6dcb985d3a10212ce3b752 (patch) | |
tree | 5b5ca88ef53ca03a6e4d8232ae8964bf2001b053 /macros/latex/contrib/l3build/l3build-check.lua | |
parent | c4777604044f5d7ed37fd9e47edd58b44630a66d (diff) |
CTAN sync 202003130302
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-check.lua')
-rw-r--r-- | macros/latex/contrib/l3build/l3build-check.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/macros/latex/contrib/l3build/l3build-check.lua b/macros/latex/contrib/l3build/l3build-check.lua index 17e6321787..c90c8fbc5a 100644 --- a/macros/latex/contrib/l3build/l3build-check.lua +++ b/macros/latex/contrib/l3build/l3build-check.lua @@ -537,7 +537,8 @@ local function normalize_pdf(content) binary = false stream = true stream_content = "stream" .. os_newline - elseif not match(line, "^ *$") then + elseif not match(line, "^ *$") and not match(line,"^%%%%") then + line = gsub(line,"%/ID %[<[^>]+><[^>]+>]","/ID [<ID-STRING><ID-STRING>]") new_content = new_content .. line .. os_newline end end @@ -768,6 +769,9 @@ function runtest(name, engine, hide, ext, pdfmode, breakout) -- Break the loop if the result is stable if breakout and i < checkruns then if pdfmode then + if fileexists(testdir .. "/" .. name .. dviext) then + dvitopdf(name, testdir, engine, hide) + end rewrite(pdffile,npffile,normalize_pdf) if compare_pdf(name,engine,true) == 0 then break |