diff options
-rw-r--r-- | Bugzilla/Markdown.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/Markdown.pm b/Bugzilla/Markdown.pm index 49f49c9b0..a82e9f3e0 100644 --- a/Bugzilla/Markdown.pm +++ b/Bugzilla/Markdown.pm @@ -478,6 +478,17 @@ sub _DoBlockQuotes { return $text; } +sub _DoLists { + my ($self, $text) = @_; + + $text = $self->SUPER::_DoLists($text); + + # strip trailing newlines created by DoLists + $text =~ s/\n</</g; + + return $text; +} + sub _EncodeCode { my ($self, $text) = @_; |