\shapemode does not reset at end of paragraphs

The documentation states that \shapemode should reset to 0 at the end of a paragraph if it is positive, but the following shows otherwise \catcode`\{=1\catcode`\}=2 \directlua{tex.enableprimitives('',tex.extraprimitives ())} \shapemode=1 \showthe\shapemode \quitvmode\par \showthe\shapemode \end I think the fix is a one liner. I attached a patch. Udi

On Sat, 18 Jan 2025 at 15:03, Udicoudco
The documentation states that \shapemode should reset to 0 at the end of a paragraph if it is positive, but the following shows otherwise
\catcode`\{=1\catcode`\}=2 \directlua{tex.enableprimitives('',tex.extraprimitives ())} \shapemode=1 \showthe\shapemode \quitvmode\par \showthe\shapemode \end
I think the fix is a one liner. I attached a patch.
Thank you very much, I will check it asap. -- luigi

On Sat, 18 Jan 2025 at 15:03, Udicoudco
The documentation states that \shapemode should reset to 0 at the end of a paragraph if it is positive, but the following shows otherwise
\catcode`\{=1\catcode`\}=2 \directlua{tex.enableprimitives('',tex.extraprimitives ())} \shapemode=1 \showthe\shapemode \quitvmode\par \showthe\shapemode \end
I think the fix is a one liner. I attached a patch.
just pushed to
https://gitlab.lisn.upsaclay.fr/texlive/luatex.git
commit 07c0b354d913a32dd3faf79f05f0f103c55416d0 (HEAD -> master,
origin/master, origin/HEAD)
Author: Luigi Scarso

On Sun, Jan 19, 2025 at 2:11 PM luigi scarso
On Sat, 18 Jan 2025 at 15:03, Udicoudco
wrote: The documentation states that \shapemode should reset to 0 at the end of a paragraph if it is positive, but the following shows otherwise
\catcode`\{=1\catcode`\}=2 \directlua{tex.enableprimitives('',tex.extraprimitives ())} \shapemode=1 \showthe\shapemode \quitvmode\par \showthe\shapemode \end
I think the fix is a one liner. I attached a patch.
just pushed to https://gitlab.lisn.upsaclay.fr/texlive/luatex.git commit 07c0b354d913a32dd3faf79f05f0f103c55416d0 (HEAD -> master, origin/master, origin/HEAD) Author: Luigi Scarso
Date: Sun Jan 19 13:08:42 2025 +0100 Fixed \shapemode does not reset at end of paragraphs (thanks to udifoglle@gmail.com)
Thanks for the quick response! Udi
participants (2)
-
luigi scarso
-
Udicoudco