File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/util Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import dotty.tools.dotc.printing.SyntaxHighlighting
8
8
9
9
import scala .Console .{BOLD , RESET , UNDERLINED }
10
10
import scala .collection .immutable .ListMap
11
+ import scala .collection .immutable .StringOps
11
12
import scala .util .matching .Regex
12
13
13
14
/**
@@ -148,7 +149,7 @@ object ParsedComment {
148
149
* @return The list of items, in markdown.
149
150
*/
150
151
private def toMarkdownList (ctx : Context , items : List [String ]): String = {
151
- val formattedItems = items.map(_ .lines.mkString(System .lineSeparator + " " ))
152
+ val formattedItems = items.map(s => new StringOps (s) .lines.mkString(System .lineSeparator + " " ))
152
153
formattedItems.mkString(" - " , System .lineSeparator + " - " , " " )
153
154
}
154
155
You can’t perform that action at this time.
0 commit comments