[latex3-commits] [l3svn] 01/02: l3build: Keep all of lines when wrapping with LuaTeX

noreply at latex-project.org noreply at latex-project.org
Sun Jan 3 09:43:27 CET 2016


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 5cc77c1dd9b872bff7bf444822d2c59814f3b52f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Jan 3 08:29:06 2016 +0000

    l3build: Keep all of lines when wrapping with LuaTeX
    
    This keeps all the data but still doesn't wrap as for pdfTeX in
    all cases. Needs more work: space dropping may need to change (again).
---
 l3build/l3build.lua |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index cd3656c..9c44a42 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -982,7 +982,7 @@ function formatlualog(logfile, newfile)
     -- In some places LuaTeX does use max_print_line, then we
     -- get into issues with different wrapping approaches
     if string.len(line) == maxprintline then
-      return "", line
+      return "", lastline .. line
     elseif string.len(lastline) == maxprintline then
       if string.match(line, "\\ETC%.%}$") then
         -- If the line wrapped at \ETC we might have lost a space
@@ -994,6 +994,9 @@ function formatlualog(logfile, newfile)
       else
         return lastline .. os_newline .. line, ""
       end
+    -- Return all of the text for a wrapped (multi)line
+    elseif string.len(lastline) > maxprintline then
+      return lastline .. line, ""
     end
     return line, ""
   end

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list