Re: length of a package extended description
On 2015-01-20 11:59:45 +0100, Thorsten Glaser wrote:
> On Thu, 15 Jan 2015, Vincent Lefevre wrote:
> > I don't even see how it can work. Perhaps you need to explain.
> • Take output of 「apt-cache show texlive-latex-extra」
> • Replace all newlines with \x01
> • Replace all “\x01\x20” with just a space (0x20)
> • Replace all remaining \x01 back to newlines
> ⇒ this ensures all fields are one line only
> • Sort that
This is broken. FYI, "apt-cache show" can return several packages,
and they are mixed up.
> • Display it with less, telling less to please not wrap lines
This is *not* what I asked. I've complained on the long description
only. The other fields like "Depends:" are still needed, without
having them to be truncated by "less".
This shows that any attempt to write a wrapper will fail at some
point, and the real solution would be either to limit the length
of the extended description or to have an option in the tools to
limit the length of the output of the extended description.
Vincent Lefèvre <firstname.lastname@example.org> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)