bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: luatex disobeys `@allowcodebreaks false`


From: Gavin Smith
Subject: Re: luatex disobeys `@allowcodebreaks false`
Date: Mon, 19 Dec 2022 22:36:15 +0000

On Mon, Dec 19, 2022 at 11:35:24AM +0000, Werner LEMBERG wrote:
> The problem is that for LuaTeX it is not sufficient setting
> `\hyphenchar` to -1 to disable hyphenation at explicitly inserted `-`
> characters...
> 
> The simplest solution is probably to change in this code
> 
> ```
> \ifallowcodebreaks
>  \let-\codedash
>  \let_\codeunder
> \else
>  \let-\normaldash  <---
>  \let_\realunder   <---
> \fi
> ```
> 
> the two marked lines so that they use macros that decorate '-' with
> `\penalty 10000` to really prevent a line break at this point.  See
> below for something that works for me.

Thanks for report and fix.  I've committed your change and uploaded the
latest texinfo.tex to ftp.gnu.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]