diff options
author | Albert Ting <altlist@gmail.com> | 2016-01-02 22:20:22 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-01-02 22:21:04 +0100 |
commit | 8f405c09b2ef1db943aaea9201785d93cd35f86e (patch) | |
tree | 41de3a0f1df48d48a27a77f3d2520b02768d47b7 /Bugzilla/WebService/Bug.pm | |
parent | 85ca54b444cb0da4d83e23f0235b6a6f31858119 (diff) | |
download | bugzilla-8f405c09b2ef1db943aaea9201785d93cd35f86e.tar.gz bugzilla-8f405c09b2ef1db943aaea9201785d93cd35f86e.tar.xz |
Bug 688205 - quoted text inside comments should wrap
r=dylan,a=dylan
Diffstat (limited to 'Bugzilla/WebService/Bug.pm')
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 7 |
1 files changed, 4 insertions, 3 deletions
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( |