summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2016-04-13 23:09:38 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-04-13 23:09:38 +0200
commitae22da8710d00232d28b7c6b9093d2b7e33b0627 (patch)
tree912db29b3967da217b7e351627188225ad752743
parent4bd1de9fddf7b02e76184e8af3fe808037040285 (diff)
downloadbugzilla-ae22da8710d00232d28b7c6b9093d2b7e33b0627.tar.gz
bugzilla-ae22da8710d00232d28b7c6b9093d2b7e33b0627.tar.xz
Bug 1154457 - Extra lines for nested MarkDown lists
r=dkl
-rw-r--r--Bugzilla/Markdown.pm11
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) = @_;