From e8f3e5c45fe2081b2ac114b1d226ff74da1eb93d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 8 Jun 2007 12:14:40 -0700 Subject: [PATCH] - Fix double leading spaces of format=flowed messages (closes: #428056) --- cgi/bugreport.cgi | 6 ++++++ debian/changelog | 2 ++ 2 files changed, 8 insertions(+) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index b001d91..24b51e4 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -176,6 +176,12 @@ sub display_entity ($$$$\$\@) { my $body = $entity->bodyhandle->as_string; $body = convert_to_utf8($body,$charset) if defined $charset; $body = html_escape($body); + # Attempt to deal with format=flowed + if ($content_type =~ m/format\s*=\s*\"?flowed\"?/i) { + $body =~ s{^\s}{}mgo; + # we ignore the other things that you can do with + # flowed e-mails cause they don't really matter. + } # Add links to URLs $body =~ s,((ftp|http|https)://[\S~-]+?/?)((\>\;)?[)]?[']?[:.\,]?(\s|$)),$1$3,go; # Add links to bug closures diff --git a/debian/changelog b/debian/changelog index 9fbe1ac..10e060d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -177,6 +177,8 @@ debbugs (2.4.2) UNRELEASED; urgency=low - Indicate the selected user (closes: #422934) - Use source package for usertags where possible (closes: #415933) - Add PR-Package header for control messages (closes: #414023) + - Fix double leading spaces of format=flowed messages + (closes: #428056) -- Colin Watson Fri, 20 Jun 2003 18:57:25 +0100 -- 2.39.2