diff --git a/lib/rdoc/markup/to_html.rb b/lib/rdoc/markup/to_html.rb
index 91cadf9d16..dd37bf9eb3 100644
--- a/lib/rdoc/markup/to_html.rb
+++ b/lib/rdoc/markup/to_html.rb
@@ -407,7 +407,7 @@ def list_item_start(list_item, list_type)
"
"
when :LABEL, :NOTE then
Array(list_item.label).map do |label|
- "#{to_html label}\n"
+ "#{to_html label}\n"
end.join << ""
else
raise RDoc::Error, "Invalid list type: #{list_type.inspect}"
diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb
index e3affa533c..225598a651 100644
--- a/test/rdoc/test_rdoc_markup_to_html.rb
+++ b/test/rdoc/test_rdoc_markup_to_html.rb
@@ -146,7 +146,7 @@ def accept_list_item_start_bullet
end
def accept_list_item_start_label
- assert_equal "- cat\n
- ", @to.res.join
+ assert_equal "
- cat
\n- ", @to.res.join
end
def accept_list_item_start_lalpha
@@ -154,13 +154,13 @@ def accept_list_item_start_lalpha
end
def accept_list_item_start_note
- assert_equal "
- cat\n
- ",
+ assert_equal "
- cat
\n- ",
@to.res.join
end
def accept_list_item_start_note_2
expected = <<-EXPECTED
-
teletype
+teletype
-
teletype description
@@ -171,7 +171,7 @@ def accept_list_item_start_note_2
def accept_list_item_start_note_multi_description
expected = <<-EXPECTED
-- label
+
- label
-
description one
-
@@ -184,8 +184,8 @@ def accept_list_item_start_note_multi_description
def accept_list_item_start_note_multi_label
expected = <<-EXPECTED
-
- one
-
- two
+
- one
+- two
-
two headers