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

revert luanode.c before r6689, it breaks linebreak_filter (thanks to M.Krüger)

parent 9b2274af
No related branches found
No related tags found
No related merge requests found
......@@ -140,13 +140,18 @@ int lua_linebreak_callback(int is_broken, halfword head_node, halfword * new_hea
luatex_error(Luas, (i == LUA_ERRRUN ? 0 : 1));
return ret;
}
lua_settop(Luas, s_top);
/*tex This should prevent a stack overflow (see r6689), */
/*tex but as side effect it discards the ouput */
/*tex of the linebreak_filter, see [Dev-luatex] linebreak_filter */
/*tex lua_settop(Luas, s_top);*/
p = lua_touserdata(Luas, -1);
if (p != NULL) {
a = nodelist_from_lua(Luas,-1);
try_couple_nodes(*new_head,a);
ret = 1;
}
/*tex re-inserted this line */
lua_settop(Luas, s_top);
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment