TeX will insert \endlinechar
at the end of line.
If the value of
\endlinechar
is negative or greater than 255, no character is appended, and the effect is as if every line ends with %.
\def\endlinechar{\char256}
hello
hello2
\bye
produces
Even if the \endlinechar
has been changed to greater than 255, the character is still append to the end of the line, which cause the effect as \par
at the end of the line. What is the reason?
\endlinechar
-the-primitive, you've created a macro of the same name: you want\endlinechar=256 %
\endlinechar=256
. From what page I should watch to learn this style of definition?