[Top][All Lists]

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

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

From: Werner LEMBERG
Subject: Re: @ continuation not working in @def...
Date: Wed, 10 Feb 2021 08:19:18 +0100 (CET)

> Actually, I don't think it is correct to preserve invisible
> white-space at end-of-line, even in verbatim modes.  A texinfo file
> should be viewed a text file.  Distinctions between different kinds
> of line-ending is not part of the "information set" of a text file,
> and neither is white-space at end-of-line: [...]

The latter is not correct, as far as I know: Let's assume that you are
going to document Markdown, and you want to make examples work with
copy and paste.  You then *must* have the ability to preserve
whitespace at the end of the line in examples, since Markdown uses
this feature – which I consider a very bad idea, but...

Ideally, texinfo would support an equivalent to LaTeX's
`\texvisiblespace` command ('␣', U+2423, OPEN BOX), which in turn has
a cmap entry (in the PDF output) that gets mapped to an ordinary space
for copy and paste.  As long as such a feature is not available,
whitespace at end of lines must be preserved IMHO.


reply via email to

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