Subject: aptitude: [Display customization] %t escape not complying with the 
formatting rule
Package: aptitude
Version: 0.6.1.5-3
Severity: minor
Tags: squeeze

## Summary
The escape symbol %t does not comply with the formatting rule :
%[width][?]code[#]

as described in the manual
(/usr/share/doc/aptitude/html/en/ch02s05s01.html)

Exerpt:
(...) All %-escapes
come with a default size and/or expandability. The size of a %-escape can be
changed by writing it between the % and the character identifying the escape;
for instance, %20V generates the candidate version of the package, 20
characters wide. Placing a question mark (?) between the %  and the character
identifying the escape causes the column's “basic” width to vary depending
on its content. Note that the resulting columns might not line up vertically!
(...)

"width" has no effect
? parameter has no effect
I didn't try #


##Steps to follow to reproduce the problem 

#Example 1:
$ aptitude search '~i' --display-format '*%?t*'

should show:
*unstable*
*testing,unstable*

actually shows:
*unstable                                                                      *
*testing,unstable                                                              *

=> no effect

#Example 2:
$ aptitude search '~i' --display-format '*%3?t*'
should show:
*uns*
*tes*

actually shows:

*unstable                                                                      *
*testing,unstable                                                              *

=> no effect


-- Package-specific info:
aptitude 0.6.1.5 compiled at Mar 12 2010 09:52:06
Compiler: g++ 4.4.3
Compiled against:
  apt version 4.8.0
  NCurses version 5.7
  libsigc++ version: 2.2.4.2
  Ept support enabled.
  Gtk+ support disabled.

Current library versions:
  NCurses version: ncurses 5.7.20100313
  cwidget version: 0.5.16
  Apt version: 4.8.0
        linux-gate.so.1 =>  (0xb7fa3000)
        libapt-pkg-libc6.9-6.so.4.8 => /usr/lib/libapt-pkg-libc6.9-6.so.4.8 
(0xb7ec7000)
        libncursesw.so.5 => /lib/libncursesw.so.5 (0xb7e81000)
        liblog4cxx.so.10 => /usr/lib/liblog4cxx.so.10 (0xb7cdb000)
        libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0xb7cd5000)
        libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0xb7c15000)
        libept.so.0 => /usr/lib/libept.so.0 (0xb7ba1000)
        libxapian.so.15 => /usr/lib/libxapian.so.15 (0xb7a53000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7a3f000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb79bb000)
        libboost_iostreams.so.1.40.0 => /usr/lib/libboost_iostreams.so.1.40.0 
(0xb79b0000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7996000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb78a5000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb787f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7862000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb771b000)
        libutil.so.1 => /lib/i686/cmov/libutil.so.1 (0xb7717000)
        libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7712000)
        libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0xb76f2000)
        libdb-4.8.so => /usr/lib/libdb-4.8.so (0xb758c000)
        libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0xb755e000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb754d000)
        librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7543000)
        /lib/ld-linux.so.2 (0xb7fa4000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb753f000)
        libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb750d000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb74e7000)
Terminal: xterm
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-olivier-01
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6.9 0.7.25.3         Advanced front-end for dpkg
ii  libboost-iostreams1.40. 1.40.0-6+b1      Boost.Iostreams Library
ii  libc6                   2.10.2-6         Embedded GNU C Library: Shared lib
ii  libcwidget3             0.5.16-3         high-level terminal interface libr
ii  libept0                 0.5.30           High-level library for managing De
ii  libgcc1                 1:4.4.2-9        GCC support library
ii  liblog4cxx10            0.10.0-1.1       A logging library for C++
ii  libncursesw5            5.7+20100313-2   shared libraries for terminal hand
ii  libsigc++-2.0-0c2a      2.2.4.2-1        type-safe Signal Framework for C++
ii  libsqlite3-0            3.6.23.1-1       SQLite 3 shared library
ii  libstdc++6              4.4.2-9          The GNU Standard C++ Library v3
ii  libxapian15             1.0.18-1         Search engine library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages aptitude recommends:
ii  apt-xapian-index              0.26       maintenance tools for a Xapian ind
ii  aptitude-doc-en [aptitude-doc 0.6.1.5-3  English manual for aptitude, a ter
ii  libparse-debianchangelog-perl 1.1.1-2    parse Debian changelogs and output
ii  sensible-utils                0.0.4      Utilities for sensible alternative

Versions of packages aptitude suggests:
ii  debtags                       1.7.9+b2   Enables support for package tags
pn  tasksel                       <none>     (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to