[latex3-commits] [l3svn] r6959 - zap line numbers from lua stack trace

noreply at latex-project.org noreply at latex-project.org
Sun Feb 19 21:11:24 CET 2017


Author: carlisle
Date: 2017-02-19 21:11:23 +0100 (Sun, 19 Feb 2017)
New Revision: 6959

Modified:
   trunk/l3build/l3build.lua
Log:
zap line numbers from lua stack trace

Modified: trunk/l3build/l3build.lua
===================================================================
--- trunk/l3build/l3build.lua	2017-02-19 09:08:16 UTC (rev 6958)
+++ trunk/l3build/l3build.lua	2017-02-19 20:11:23 UTC (rev 6959)
@@ -774,6 +774,8 @@
     -- Zap line numbers from \show, \showbox, \box_show and the like:
     -- do this before wrapping lines
     line = string.gsub(line, "^l%.%d+ ", "l. ...")
+    -- Also from lua stack traces.
+    line = string.gsub(line, "lua:%d+: in function", "lua:...: in function")
     -- Allow for wrapped lines: preserve the content and wrap
     -- Skip lines that have an explicit marker for truncation
     if string.len(line) == maxprintline  and



More information about the latex3-commits mailing list