diff options
author | Albert Ting <altlist@gmail.com> | 2015-04-01 16:37:39 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-04-01 16:37:39 +0200 |
commit | 1fbcede24288ad8abdeaf49255e5c0996ac2df4c (patch) | |
tree | 678dd12a916497c779d768c459ef7ad972610d8a | |
parent | f293fdf225ed0745de63f9f205407ccc2b8a44d4 (diff) | |
download | bugzilla-1fbcede24288ad8abdeaf49255e5c0996ac2df4c.tar.gz bugzilla-1fbcede24288ad8abdeaf49255e5c0996ac2df4c.tar.xz |
Bug 1093868: Markdown text rendering in comments is broken after commit from bug 1059684
r=dkl,a=glob
-rw-r--r-- | Bugzilla/Template.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 6de927b9a..653a8c51f 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -367,6 +367,8 @@ sub get_bug_link { my $linkified; $template->process('bug/link.html.tmpl', { bug => $bug, link_text => $link_text, %$options }, \$linkified); + $linkified =~ s/\n//g; # strip newlines to prevent markdown conflicts + $linkified =~ s/\|/|/g; # escape '|', it confuses markdown tables return $linkified; } |