[latex3-commits] [l3svn] 02/02: l3build: Normalise another LuaTeX \discretionary variant

noreply at latex-project.org noreply at latex-project.org
Wed Nov 18 08:15:23 CET 2015


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

joseph pushed a commit to branch master
in repository l3svn.

commit 54e86940748ea67507d9d7cfbec76e60b37abdfe
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 18 07:09:26 2015 +0000

    l3build: Normalise another LuaTeX \discretionary variant
---
 l3build/l3build.lua |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index fd1ea64..f394d81 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -922,6 +922,10 @@ function formatlualog(logfile, newfile)
           -- End of a \discretionary block
           return line, ""
         else
+          -- Not quite a normal discretionary
+          if string.match(lastline, "^%.+\\discretionary50%|$") then
+            lastline =  string.gsub(lastline, "50%|$", "")
+          end
           -- A normal (TeX90) discretionary:
           -- add with the line break reintroduced
           return lastline .. os_newline .. line, ""

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


More information about the latex3-commits mailing list