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

Bug#598922: apt-cache showsrc prints too many spaces



reassign 598922 dpkg-dev
thanks

On So, 2010-10-03 at 11:10 +0200, Cyril Brulebois wrote:
> Package: apt
> Version: 0.8.5
> Severity: normal
> 
> Hi,
> 
> one can span fields like Uploaders on multiple lines, using several
> spaces to align everything, which is what evolution-mapi people did:
> | Uploaders: Heikki Henriksen <heikkih@gmail.com>,
> |            Lawrence Walton <lawrence@the-penguin.otak.com>,
> |            Loic Minier <lool@dooz.org>,
> |            Oystein Gisnas <oystein@gisnas.net>,
> |            Josselin Mouette <joss@debian.org>,
> |            Jelmer Vernooij <jelmer@debian.org>,
> |            Yves-Alexis Perez <corsac@debian.org>,
> |            David Weinehall <tao@debian.org>
> 
> But it looks like apt-cache showsrc almost display them as-is, that is
> just stripping newlines:
> | Uploaders: Heikki Henriksen <heikkih@gmail.com>,           Lawrence Walton <lawrence@the-penguin.otak.com>,           Loic Minier <lool@dooz.org>,           Oystein Gisnas <oystein@gisnas.net>,           Josselin Mouette <joss@debian.org>,           Jelmer Vernooij <jelmer@debian.org>,           Yves-Alexis Perez <corsac@debian.org>,           David Weinehall <tao@debian.org>
> 

The newlines are stripped by dak or dpkg, they are not in the Sources
file and APT just displays the sources entry as it. Furthermore, Policy
does not state that whitespace should be ignored, only the newlines; so
this behavior is correct.

The following steps seem to be needed to change this:
     1. Change Policy 5.6.3 to ignore multiple whitespace after newline
     2. Strip the whitespace in dpkg

But as this is not an APT bug, I am reassigning it to dpkg-dev and let
them decide what to do next.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.





Reply to: