[latex3-commits] [git/LaTeX3-latex3-l3build] master: Support for normalisation of LuaTeX v1.10 stack information (68497d1)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jun 26 14:53:34 CEST 2019


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/68497d1afb0e14e3017347b74d2b4d8692ad6e93

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

commit 68497d1afb0e14e3017347b74d2b4d8692ad6e93
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jun 26 13:53:34 2019 +0100

    Support for normalisation of LuaTeX v1.10 stack information


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

68497d1afb0e14e3017347b74d2b4d8692ad6e93
 CHANGELOG.md      | 5 +++++
 l3build-check.lua | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index d26ce6a..3b9a095 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,11 @@ this project uses date-based 'snapshot' version identifiers.
 
 - Support for HarfTeX (see #92)
 
+### Changed
+
+- Support for normalisation of LuaTeX v1.10 stack information
+  (may require new `.tlg` files)
+
 ### Fixed
 
 - Support for spaces in paths when typesetting (see #91)
diff --git a/l3build-check.lua b/l3build-check.lua
index 74c3b01..38e7f88 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -123,7 +123,9 @@ local function normalize_log(content,engine,errlevels)
     -- do this before wrapping lines
     line = gsub(line, "^l%.%d+ ", "l. ...")
     -- Also from lua stack traces.
-    line = gsub(line, "lua:%d+: in function", "lua:...: in function")
+    for str,_ in pairs({"field","function","upvalue"}) do
+      line = gsub(line, "lua:%d+: in " .. str, "lua:...: in " .. str)
+    end
     -- Allow for wrapped lines: preserve the content and wrap
     -- Skip lines that have an explicit marker for truncation
     if len(line) == maxprintline  and





More information about the latex3-commits mailing list