[Reportbug-maint] Bug#650659: reportbug: Trailing whitespaces in package versions

Nelson A. de Oliveira naoliv at debian.org
Thu Dec 1 17:20:53 UTC 2011


Package: reportbug
Version: 6.3
Severity: wishlist

Hi again!

reportbug leaves some trailing whitespaces when formatting the package
dependencies (in reportbug/utils.py:671). The attached image gives an
example.

Something like this could be used, if possible:

=====
--- reportbug-6.3/reportbug/utils.py	2011-11-06 15:04:44.000000000 -0200
+++ reportbug-6.3/reportbug/utils.py	2011-12-01 15:06:35.603596557 -0200
@@ -668,9 +668,9 @@
         # we format the string specifying to align it in a field of a given
         # dimension (the first {width*}) but also limit its size (the second
         # {width*}
-        info = '{0:3.3} {1:{widthp}.{widthp}}  {2:{widthv}.{widthv}}\n'.format(
+        info = '{0:3.3} {1:{widthp}.{widthp}}  {2:{widthv}.{widthv}}'.format(
             status, pack, vers, widthp=widthp, widthv=widthv)
-        depinfo += info
+        depinfo += info.rstrip() + '\n'
 
     return depinfo
 
=====

Thank you!

Best regards,
Nelson

-- Package-specific info:
** Environment settings:
DEBEMAIL="naoliv at debian.org"
INTERFACE="text"

** /home/naoliv/.reportbugrc:
reportbug_version "4.12.4"
mode advanced
ui text
no-cc
header "X-Debbugs-CC: naoliv at debian.org"
smtphost reportbug.debian.org

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt               0.8.15.9
ii  python            2.7.2-9
ii  python-reportbug  6.3

reportbug recommends no packages.

Versions of packages reportbug suggests:
ii  debconf-utils                            1.5.41
ii  debsums                                  <none>
ii  dlocate                                  <none>
ii  emacs22-bin-common | emacs23-bin-common  <none>
ii  file                                     5.09-2
ii  gnupg                                    1.4.11-3
ii  python-gtk2                              2.24.0-2
ii  python-gtkspell                          <none>
ii  python-urwid                             <none>
ii  python-vte                               1:0.28.2-1
ii  ssmtp [mail-transport-agent]             2.64-5
ii  xdg-utils                                1.1.0~rc1-2

Versions of packages python-reportbug depends on:
ii  apt               0.8.15.9
ii  python            2.7.2-9
ii  python-debian     0.1.21
ii  python-debianbts  1.10
ii  python-support    1.0.14

python-reportbug suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reportbug-trailing-space.png
Type: image/png
Size: 2927 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20111201/b69ff9ce/attachment.png>


More information about the Reportbug-maint mailing list