[Top][All Lists]

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

Re: protection of space inside @w is wrong

From: Jacob Bachmeyer
Subject: Re: protection of space inside @w is wrong
Date: Thu, 20 Oct 2022 17:25:14 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20090807 SeaMonkey/1.1.17 Mnenhy/

Patrice Dumas wrote:
On Thu, Oct 20, 2022 at 07:39:51PM +0100, Gavin Smith wrote:
In texi2any, as well as stopping line breaks, multiple spaces are
protected, so @w{a  b} outputs as 'a  b' not 'a b'.

Indeed.  I have not checked, but I think that it dates back to makeinfo
in C.  It follows the same logic in HTML.

(However, I checked that in contexts where you would like multiple spaces
to be protected, like @samp{a  b}, this doesn't happen.)

I don't get the point above.  To me, in @samp{a  b} you do not want
anything special to be done to spaces, such that a double space should
become a simple space in the plaintext/Info output.  It can remain a
double space in HTML, LaTeX, DocBook...

It might be worth noting that HTML, LaTeX, and DocBook will all subsequently collapse ordinary spaces just as TeX does when using texinfo.tex. Info and plain text are the odd formats out here, where a doubled space in texi2any output will actually remain doubled for display.

-- Jacob

reply via email to

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