From 908935c02c0800902b3dffd348b620a3c5bab272 Mon Sep 17 00:00:00 2001 From: psg <> Date: Mon, 23 Feb 2009 15:53:05 +0000 Subject: =?UTF-8?q?debian-bug.el:=20Bug=20fix:=20Adapted=20patch=20from=20?= =?UTF-8?q?H=C3=A5kon=20Stordahl=20=20to=20quote=20bug?= =?UTF-8?q?=20descriptions=20when=20building=20the=20bug=20menu.=20(Closes?= =?UTF-8?q?:=20#489786)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian-bug.el | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'debian-bug.el') diff --git a/debian-bug.el b/debian-bug.el index 69e6cb8..e2f1417 100644 --- a/debian-bug.el +++ b/debian-bug.el @@ -3,6 +3,7 @@ ;; Copyright (C) 1998, 1999 Free Software Foundation, Inc. ;; Copyright (C) 2001, 2002, 2003, 2004 Peter S Galbraith ;; Copyright (C) 2005, 2006, 2007, 2008 Peter S Galbraith +;; Copyright (C) 2009 Peter S Galbraith ;; Help texts from ;; http://www.debian.org/Bugs/Developer#severities @@ -292,6 +293,9 @@ ;; V1.67 09Sept2008 Peter S Galbraith ;; - Bug fix: "Bug submenus have vanished", thanks to Bill Wohler for the ;; report and to Camm Maguire for an initial patch (Closes: #463053). +;; V1.68 23Feb2009 Peter S Galbraith +;; - Bug fix: Adapted patch from Håkon Stordahl to +;; quote bug descriptions when building the bug menu. (Closes: #489786) ;; ---------------------------------------------------------------------------- ;;; Todo (Peter's list): @@ -1866,11 +1870,12 @@ Only decodes if `rfc2047-decode-string' is available." (save-excursion (set-buffer debian-bug-tmp-buffer) (insert - "[\"#" bugnumber " " - (if (< 60 (length description)) - (substring description 0 60) - description) - "\" (debian-bug-menu-action \"" bugnumber "\")" + "[" + (format "%S" (concat "#" bugnumber " " + (if (< 60 (length description)) + (substring description 0 60) + description))) + " (debian-bug-menu-action \"" bugnumber "\")" " :active " (if bugs-are-open-flag "t" -- cgit v1.2.3