bug-texinfo
[Top][All Lists]
Advanced

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

Re: @verb issues


From: Gavin Smith
Subject: Re: @verb issues
Date: Wed, 7 Dec 2022 07:21:21 +0000

On Sun, Dec 04, 2022 at 06:24:11PM +0000, Werner LEMBERG wrote:
> 
> >> Please also fix `makeinfo` so that `@verb` doesn't create overlong
> >> lines in info files.
> > 
> > This is not immediately easy for me to do.  @verb is treated
> > sensibly when the argument does not contain a newline but multiple
> > lines in its argument confuse texi2any.  This is something I will
> > have to investigate at a later date.
> 
> OK, no problem.

We should assume that spaces inside @verb are important and should
be apparent to the reader.  This may not be the case if we allow line
breaking before or after spaces.

One question I have is whether spaces should disappear if they are
used for a line break.  If we break before a space should we start
the next line with a space, or if we break before a space should
we end the current line with a space?  A break may also occur in
between two spaces.  A line break in between the spaces in @verb{+X  Y+}
may be a bad thing if the document author deliberately wanted to
illustrate two spaces in a row.  

In HTML output there would be a case for using   for any spaces
in the output.



reply via email to

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