From 8f405c09b2ef1db943aaea9201785d93cd35f86e Mon Sep 17 00:00:00 2001 From: Albert Ting Date: Sat, 2 Jan 2016 16:20:22 -0500 Subject: Bug 688205 - quoted text inside comments should wrap r=dylan,a=dylan --- Bugzilla/WebService/Bug.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Bugzilla/WebService/Bug.pm') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 84f209347..cc40259f8 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -342,9 +342,10 @@ sub render_comment { Bugzilla->switch_to_shadow_db(); my $bug = $params->{id} ? Bugzilla::Bug->check($params->{id}) : undef; - my $markdown = $params->{markdown} ? 1 : 0; - my $tmpl = $markdown ? '[% text FILTER markdown(bug, { is_markdown => 1 }) %]' : '[% text FILTER markdown(bug) %]'; - + my $tmpl + = $params->{markdown} + ? '[% text FILTER markdown(bug, { is_markdown => 1 }) %]' + : '[% text FILTER wrap_cite FILTER markdown(bug) %]'; my $html; my $template = Bugzilla->template; $template->process( -- cgit v1.2.3-24-g4f1b