[latex3-commits] [git/LaTeX3-latex3-l3build] master: Normalise %% lines in PDF comparisons (f335511)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Mar 12 09:13:00 CET 2020
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/f335511310d07e2f988f4caafd00fc5621cd53fe
>---------------------------------------------------------------
commit f335511310d07e2f988f4caafd00fc5621cd53fe
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Mar 12 08:13:00 2020 +0000
Normalise %% lines in PDF comparisons
>---------------------------------------------------------------
f335511310d07e2f988f4caafd00fc5621cd53fe
CHANGELOG.md | 1 +
l3build-check.lua | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8690024..f18ad0d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ this project uses date-based 'snapshot' version identifiers.
### Changed
- Normalise `/ID` lines in PDF comparisons
+- Normalise `%%` lines in PDF comparisons
### Fixed
- Enable `cleandir()` recursively
diff --git a/l3build-check.lua b/l3build-check.lua
index 80ee2e1..c90c8fb 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -537,7 +537,7 @@ 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
More information about the latex3-commits
mailing list.