summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorKoosha KM <koosha.khajeh@gmail.com>2014-10-14 22:42:46 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-10-14 22:42:46 +0200
commit42d5e45576b519f19879d2b0eba529932da81644 (patch)
treefc6a2aafc38c1d2aa6ebf0ab1453827893107886 /Bugzilla/Template.pm
parent847191ac9f29dee98088203d2ac135b9d820b507 (diff)
downloadbugzilla-42d5e45576b519f19879d2b0eba529932da81644.tar.gz
bugzilla-42d5e45576b519f19879d2b0eba529932da81644.tar.xz
Bug 1059723: Reply button should become AJAX-based
r=dkl,a=sgreen
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index ca467577f..660767afd 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -148,10 +148,11 @@ sub get_format {
# If you want to modify this routine, read the comments carefully
sub quoteUrls {
- my ($text, $bug, $comment, $user, $bug_link_func) = @_;
+ my ($text, $bug, $comment, $user, $bug_link_func, $for_markdown) = @_;
return $text unless $text;
$user ||= Bugzilla->user;
$bug_link_func ||= \&get_bug_link;
+ $for_markdown ||= 0;
# We use /g for speed, but uris can have other things inside them
# (http://foo/bug#3 for example). Filtering that out filters valid
@@ -222,10 +223,11 @@ 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;
-
+ unless ($for_markdown) {
+ # 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
# &#64; is the encoded '@' character.