[latex3-commits] [git/LaTeX3-latex3-l3build] main: Normalise GhostScript version in PDF tests (81859b9)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Apr 14 15:01:32 CEST 2022


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/81859b9cdb00c9df4353a6c0b6803d9adee2c2f4

>---------------------------------------------------------------

commit 81859b9cdb00c9df4353a6c0b6803d9adee2c2f4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Apr 14 14:01:00 2022 +0100

    Normalise GhostScript version in PDF tests


>---------------------------------------------------------------

81859b9cdb00c9df4353a6c0b6803d9adee2c2f4
 CHANGELOG.md      | 3 +++
 l3build-check.lua | 1 +
 2 files changed, 4 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ee19e13..f205c09 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Changed
+- Normalise GhostScript version in PDF-based tests
+
 ## [2022-04-12]
 
 ### Added
diff --git a/l3build-check.lua b/l3build-check.lua
index 94ffc67..d77fc6c 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -553,6 +553,7 @@ local function normalize_pdf(content)
       not match(line,"^%%%%%+") then
       line = gsub(line,"%/ID( ?)%[<[^>]+><[^>]+>]","/ID%1[<ID-STRING><ID-STRING>]")
       line = gsub(line,"%/ID( ?)%[(%b())%2%]","/ID%1[<ID-STRING><ID-STRING>]")
+      line = gbsub(line,"GhostScript %d%.%d+%.?%d*","GhostScript ...")
       new_content = new_content .. line .. os_newline
     end
   end





More information about the latex3-commits mailing list.