File tree 2 files changed +10
-3
lines changed
scaladoc/src/dotty/tools/scaladoc 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,15 @@ class DocRender(signatureRenderer: SignatureRenderer)(using DocContext):
20
20
renderLink(link, default => text(if name.isEmpty then default else name)).toString
21
21
))
22
22
23
- private def listItems (items : Seq [WikiDocElement ]) =
24
- items.map(i => li(renderElement(i)))
23
+ private def listItems (items : Seq [WikiDocElement ]): Seq [AppliedTag ] = items match
24
+ case Nil => Nil
25
+ case (x :: (y : (UnorderedList | OrderedList )) :: tail) =>
26
+ li(
27
+ renderElement(x),
28
+ renderElement(y)
29
+ ) +: listItems(tail)
30
+ case (x :: tail) =>
31
+ li(renderElement(x)) +: listItems(tail)
25
32
private def notSupported (name : String , content : AppliedTag ): AppliedTag =
26
33
report.warning(s " Wiki syntax does not support $name in ${signatureRenderer.currentDri.location}" )
27
34
content
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ class WikiCommentParser(repr: Repr)(using DocContext)
211
211
private def flatten (b : wiki.Inline ): String = b match
212
212
case wiki.Text (t) => t
213
213
case wiki.Italic (t) => flatten(t)
214
- case wiki.Bold (t) => flatten(t)
214
+ case wiki.Bold (t) => flatten(t)
215
215
case wiki.Underline (t) => flatten(t)
216
216
case wiki.Superscript (t) => flatten(t)
217
217
case wiki.Subscript (t) => flatten(t)
You can’t perform that action at this time.
0 commit comments