diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/linebreak.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/linebreak.w | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/linebreak.w b/Build/source/texk/web2c/luatexdir/tex/linebreak.w index 58afdb8e535..6560192da93 100644 --- a/Build/source/texk/web2c/luatexdir/tex/linebreak.w +++ b/Build/source/texk/web2c/luatexdir/tex/linebreak.w @@ -352,6 +352,10 @@ static boolean check_expand_pars(internal_font_number f) l = pop_node(); /* don't visit this node again */ run = false; } +if ((vlink(l) != null) && (type(l) == boundary_node) && ((subtype(l) == 1) || (subtype(l) == 3))) { + /* skip next node */ + l = vlink(l); +} if (vlink(l) != null) { l = vlink(l); } else if (hlist_stack_level == 0) { @@ -392,8 +396,11 @@ static boolean check_expand_pars(internal_font_number f) l = pop_node(); } if ((r != l) && (r != null)) { +if ((alink(r) != null) && (type(r) == boundary_node) && ((subtype(r) == 2) || (subtype(r) == 3))) { + /* skip next node */ + r = alink(r); +} if (alink(r) != null) { - assert(vlink(alink(r)) == r); r = alink(r); } else { /* this is the input: \.{\\leavevmode\\penalty-10000\\penalty-10000} (bug \#268) */ run = false; |