Package: reportbug
Version: 4.11
Severity: normal
Tags: patch

I am unable to file a report which has multiple paragraphs using the GTK+ UI. I
think it's because of the correction associated with the bug #562878 which
overdoes the wrapping.

I attach a patch. This report is sent from the patched version.  Hopefully You
will see multiple paragraphs divided by empty lines.


-- Package-specific info:
** Environment settings:
INTERFACE="gtk2"

** /home/wodny/.reportbugrc:
reportbug_version "4.5"
mode standard
ui gtk2
realname "Marcin Szewczyk, Wodny"
email "[email protected]"

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'stable'), (50, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt                           0.7.25.3   Advanced front-end for dpkg
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-reportbug              4.11       Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils        <none>              (no description available)
pn  debsums              <none>              (no description available)
pn  dlocate              <none>              (no description available)
pn  emacs22-bin-common | <none>              (no description available)
ii  esmtp-run [mail-tran 1.2-3               user configurable relay-only MTA -
ii  file                 5.04-1              Determines file type using "magic"
ii  gnupg                1.4.10-2            GNU privacy guard - a free PGP rep
ii  python-gtk2          2.16.0-2            Python bindings for the GTK+ widge
pn  python-gtkspell      <none>              (no description available)
ii  python-urwid         0.9.9.1-1           curses-based UI/widget library for
ii  python-vte           1:0.22.5-3          Python bindings for the VTE widget
ii  xdg-utils            1.0.2+cvs20100307-1 desktop integration utilities from

-- no debconf information
diff -u -r reportbug-4.11/reportbug/ui/gtk2_ui.py reportbug-4.11-patched/reportbug/ui/gtk2_ui.py
--- reportbug-4.11/reportbug/ui/gtk2_ui.py	2010-03-16 19:31:54.000000000 +0100
+++ reportbug-4.11-patched/reportbug/ui/gtk2_ui.py	2010-04-12 20:46:11.000000000 +0200
@@ -308,12 +308,14 @@
                 break
 
     def create_message (self, info):
+        seggen = (segment.strip() for segment in info.replace(' \n', '\n').split('\n\n'))
+        pargen = (textwrap.fill(segment,79) for segment in seggen if segment)
         message = """%s
 
 %s
 
 
-%s""" % ('\n'.join (self.headers), textwrap.fill (info, width=79), self.others)
+%s""" % ('\n'.join (self.headers), '\n\n'.join(pargen), self.others)
         return message
 
 # BTS GUI
_______________________________________________
Reportbug-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/reportbug-maint

Reply via email to