diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2019-03-16 14:22:44 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2019-03-16 14:22:44 +0000 |
commit | 090dff7b31108a1b2c2d7f11967cb414e9d5ac48 (patch) | |
tree | 772251ef37c388a42e2d798ff3c28caf61622b01 /Build/source/texk/web2c/luatexdir/lang | |
parent | eb9deda90c9e0256f62b40599dd5661370d46abf (diff) |
Additional wrapping of local boxes; updated luatex manual.
git-svn-id: svn://tug.org/texlive/trunk@50412 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lang')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lang/texlang.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.c b/Build/source/texk/web2c/luatexdir/lang/texlang.c index 04f96660f5e..323d27c5865 100644 --- a/Build/source/texk/web2c/luatexdir/lang/texlang.c +++ b/Build/source/texk/web2c/luatexdir/lang/texlang.c @@ -944,6 +944,9 @@ void hnj_hyphenation(halfword head, halfword tail) halfword s, r = head, wordstart = null, save_tail1 = null, left = null, right = null; halfword expstart = null; boolean compound_hyphen = compound_hyphen_mode_par; + /*tex Let's play safe: */ + if (tail == null) + return; /*tex This first movement assures two things: @@ -969,7 +972,8 @@ void hnj_hyphenation(halfword head, halfword tail) r = find_next_wordstart(r,first_language,strict_bound); if (r == null) return; - assert(tail != null); + if (tail == null) + return; save_tail1 = vlink(tail); s = new_penalty(0,word_penalty); couple_nodes(tail, s); |