diff --git a/texk/web2c/ctiedir/ChangeLog b/texk/web2c/ctiedir/ChangeLog index 5af1c85e12..adb0c68991 100644 --- a/texk/web2c/ctiedir/ChangeLog +++ b/texk/web2c/ctiedir/ChangeLog @@ -1,3 +1,7 @@ +2023-05-21 Andreas Scherer + + * ctie-k.ch: Handle deletion of last line in 'master' file. + 2021-04-06 Andreas Scherer * ctie-k.ch: Use 'putc' for single newline character. diff --git a/texk/web2c/ctiedir/ctie-k.ch b/texk/web2c/ctiedir/ctie-k.ch index 978737bf76..55539f2fd0 100644 --- a/texk/web2c/ctiedir/ctie-k.ch +++ b/texk/web2c/ctiedir/ctie-k.ch @@ -567,6 +567,16 @@ static boolean e_of_ch_preamble (file_index i) @z +@x l.1079 +if (out_mode==post) /* last line has been changed */ + fprintf(out_file, "@@z\n"); +@y +if (out_mode==post) /* last line has been changed */ + fprintf(out_file, "@@z\n"); +else if (out_mode==pre) /* last line has been deleted */ + fprintf(out_file, "@@y\n@@z\n"); +@z + @x l.1106 void usage_error() { diff --git a/texk/web2c/tiedir/ChangeLog b/texk/web2c/tiedir/ChangeLog index c83da87123..7c39a2506f 100644 --- a/texk/web2c/tiedir/ChangeLog +++ b/texk/web2c/tiedir/ChangeLog @@ -1,3 +1,7 @@ +2023-05-21 Andreas Scherer + + * tie-w2c.ch: Handle deletion of last line in 'master' file. + 2021-04-04 Andreas Scherer * tie-w2c.ch: Delete dot in banner line. diff --git a/texk/web2c/tiedir/tie-w2c.ch b/texk/web2c/tiedir/tie-w2c.ch index 639d200831..e4597e0fc3 100644 --- a/texk/web2c/tiedir/tie-w2c.ch +++ b/texk/web2c/tiedir/tie-w2c.ch @@ -396,6 +396,26 @@ if (prod_chf==chf) else @z +Section 53. + +@x l.1133 +if (out_mode==post) { /* last line has been changed */ + fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file); + new_line(out_file); + } +@y +if (out_mode==post) { /* last line has been changed */ + fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file); + new_line(out_file); + } +else if (out_mode==pre) { /* last line has been deleted */ + fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'y'),out_file); + new_line(out_file); + fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'z'),out_file); + new_line(out_file); + } +@z + Section 55 @x l.1158