summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2006-02-22 07:18:35 +0100
committerjocuri%softhome.net <>2006-02-22 07:18:35 +0100
commit631d910c3dbce389638550c66ab2e6d847703687 (patch)
tree5b8950e2b992728b0b9e94f848d3c8d4344db098 /globals.pl
parent34159623742cea3107168167ff47b395b41c8e26 (diff)
downloadbugzilla-631d910c3dbce389638550c66ab2e6d847703687.tar.gz
bugzilla-631d910c3dbce389638550c66ab2e6d847703687.tar.xz
Patch for bug 313045: Display quoted text in a different color; patch by Olav Vitters <bugzilla-mozilla@bkor.dhs.org>, r=LpSolit, a=justdave.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 68299378b..9979008d1 100644
--- a/globals.pl
+++ b/globals.pl
@@ -529,6 +529,10 @@ sub quoteUrls {
$text = html_quote($text);
+ # Color quoted text
+ $text =~ s~^(&gt;.+)$~<span class="quote">$1</span >~mg;
+ $text =~ s~</span >\n<span class="quote">~\n~g;
+
# mailto:
# Use |<nothing> so that $1 is defined regardless
$text =~ s~\b(mailto:|)?([\w\.\-\+\=]+\@[\w\-]+(?:\.[\w\-]+)+)\b