bug-texinfo
[Top][All Lists]
Advanced

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

Re: Within `@code`, `@-` and `@/` are handled the same


From: Gavin Smith
Subject: Re: Within `@code`, `@-` and `@/` are handled the same
Date: Wed, 7 Dec 2022 07:02:42 +0000

On Tue, Dec 6, 2022 at 7:53 AM Werner LEMBERG <wl@gnu.org> wrote:
> As can be seen in the attached output, there is no hyphen in the split
> word.  I consider this a bug, since there is zero reason for such a
> surprising (and undocumented) behaviour.

A hyphen could be confusing as it may be treated as a literal part of
the code. I doubt this has come up much before as people will rarely
use @- inside @code. Given that people are only putting in @-
deliberately then it may be harmless to make it print a hyphen.
However, line breaks at _ and - are allowed inside @code, without any
extra hyphen being printed. How can the user distinguish between
hyphens that are taken literally and those that are only for word continuation?

Maybe we could try to print hyphens inserted with @- in a roman font,
and see if it is distinguishable enough from a hyphen in the tt font.

>
> BTW, you get exactly the same output if you replace `@code` with `@t`
> – and *this* is definitely a bug :-)

We should test both in any changes we make.



reply via email to

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