From ae22da8710d00232d28b7c6b9093d2b7e33b0627 Mon Sep 17 00:00:00 2001 From: Albert Ting Date: Wed, 13 Apr 2016 21:09:38 +0000 Subject: Bug 1154457 - Extra lines for nested MarkDown lists r=dkl --- Bugzilla/Markdown.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) 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