On Tue, 14 Oct 2008, Taco Hoekwater wrote:
Oliver Heins wrote:
Looking in luatex.web, I found that the definition of \latelua contains a line »pdf_print_nl«. Removing this line seems to give the intended behaviour, though it might break something else.
It is funny how sometimes a bug is dormant for months and is then suddenly and independantly discovered by multiple people. Hans ran into exactly the same bug yesterday evening, and the svn commit that fixes it (made two hours ago) looks like this:
that is interesting. In the very 1st version it even used modifiers like
\latelua direct {} (still without the Lua number) and there were proper
pdf_end_text and so on, like this from 10/2005:
procedure latelua(s: str_number; lua_mode: integer; warn: boolean);
var b, j: pool_pointer; {current character code position}
begin
j:=str_start[s];
case lua_mode of
set_origin: begin
pdf_end_text;
pdf_set_origin(cur_h, cur_v);
end;
direct_page:
pdf_end_text;
direct_always:
pdf_end_string_nl;
othercases confusion("latelua1")
endcases;
b := pool_ptr;
luacall(s);
while b