[Top][All Lists]

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

Re: @ continuation not working in @def...

From: Patrice Dumas
Subject: Re: @ continuation not working in @def...
Date: Wed, 10 Feb 2021 01:15:34 +0100

On Tue, Feb 09, 2021 at 04:01:53PM -0800, Per Bothner wrote:
> On 2/9/21 1:03 PM, Per Bothner wrote:
> > On general principles, I believe any program that reads text files
> > on *any* platforms should handle "\r\n" the same as "\n".
> > Not doing so is IMNSHO a bug.
> Actually, I'd generalize this: All invisible "horizontal whitespace"
> (' ', '\t', '\r') before a line-end ('\n', '\v', '\'f') should be ignored
> (optionally with a warning the first time it is seen).

in general, nothing is ignored at the parsing stage.  That way the
original document can be more easily regenerated from a format without 
information loss such as TexinfoXML, and also because in some situations
(@verbatim, @verb, @html, @example...) we want to keep all the spaces as
is.  However such spaces may be ignored when formatting the output
(typically in Info output), or kept for output that do not care about
those spaces (HTML for example).

But this should already be handled correctly by texi2any, there is only
an issue with files with CRLF on platforms with LF as end of lines (and 
possibly with files with LF on CRLF platforms).


reply via email to

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