From: Albert Ting Date: Wed, 1 Apr 2015 14:37:39 +0000 (+0100) Subject: Bug 1093868: Markdown text rendering in comments is broken after commit from bug... X-Git-Tag: release-5.1.1~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fbcede24288ad8abdeaf49255e5c0996ac2df4c;p=thirdparty%2Fbugzilla.git Bug 1093868: Markdown text rendering in comments is broken after commit from bug 1059684 r=dkl,a=glob --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 6de927b9ad..653a8c51f8 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; }