[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.9-53-g9b7f94a
Luca Bruno
lethalman88 at gmail.com
Wed Feb 3 19:41:37 UTC 2010
The following commit has been merged in the master branch:
commit d34466e5d496d3b6cb0218452f8ed74603ffcef4
Author: Luca Bruno <lethalman88 at gmail.com>
Date: Sat Jan 30 22:18:00 2010 +0100
wrap text to be 79 chars width in the editor; thanks to Mark Brown for
the report; Closes: #562878
diff --git a/debian/changelog b/debian/changelog
index d9cd024..04d067c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,8 +4,10 @@ reportbug (4.10.3) UNRELEASED; urgency=low
- rename Forward button to Continue button; Closes: #565140
- more selectable labels and use text views for bug replies;
thanks to Éric Araujo for the report; Closes: #564447
+ - wrap text to be 79 chars width in the editor; thanks to Mark Brown for
+ the report; Closes: #562878
- -- Luca Bruno <lethalman88 at gmail.com> Sat, 30 Jan 2010 21:54:48 +0100
+ -- Luca Bruno <lethalman88 at gmail.com> Sat, 30 Jan 2010 22:15:13 +0100
reportbug (4.10.2) unstable; urgency=low
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index f5a4428..7676fd2 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -45,6 +45,7 @@ import os
import traceback
from Queue import Queue
import threading
+import textwrap
from reportbug.exceptions import NoPackage, NoBugs, NoNetwork, NoReport
from reportbug import debianbts
@@ -311,7 +312,7 @@ class BugReport (object):
%s
-%s""" % ('\n'.join (self.headers), info,self.others)
+%s""" % ('\n'.join (self.headers), textwrap.fill (info, width=79), self.others)
return message
# BTS GUI
@@ -1159,7 +1160,7 @@ class EditorPage (Page):
info = self.report.get_original_info ()
if info.strip () == "*** Please type your report below this line ***":
- info = "Please type your report here..."
+ info = "Please type your report here.\nThe text will be wrapped to be max 79 chars long per line."
self.handle_first_info ()
self.info_buffer.set_text (info)
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list