diff options
author | Albert Ting <altlist@gmail.com> | 2016-04-13 23:09:38 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-04-13 23:09:38 +0200 |
commit | ae22da8710d00232d28b7c6b9093d2b7e33b0627 (patch) | |
tree | 912db29b3967da217b7e351627188225ad752743 | |
parent | 4bd1de9fddf7b02e76184e8af3fe808037040285 (diff) | |
download | bugzilla-ae22da8710d00232d28b7c6b9093d2b7e33b0627.tar.gz bugzilla-ae22da8710d00232d28b7c6b9093d2b7e33b0627.tar.xz |
Bug 1154457 - Extra lines for nested MarkDown lists
r=dkl
-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) = @_; |