Skip to content
Snippets Groups Projects
Commit 1e794994 authored by Luigi Scarso's avatar Luigi Scarso
Browse files

patch to fix an endless loop in lualatex (HH)

parent 810475a4
No related branches found
No related tags found
No related merge requests found
......@@ -906,11 +906,17 @@ void hnj_hyphenation(halfword head, halfword tail)
}
if (wordlen <= lhmin) {
lhmin = lhmin - lchar + 1 ;
if (lhmin < 0)
lhmin = 1;
}
if (wordlen >= rhmin) {
rhmin = rhmin - lchar + 1 ;
if (rhmin < 0)
rhmin = 1;
}
hmin = hmin - lchar + 1 ;
if (hmin < 0)
rhmin = 1;
lchar = character(r) ;
}
hy = uni2string(hy, (unsigned) lchar);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment