We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad8e54 commit bb9b127Copy full SHA for bb9b127
tastydoc/src/dotty/tastydoc/comment/WikiParser.scala
@@ -364,7 +364,7 @@ private[comment] final class WikiParser(
364
365
// maxSkip - size of the longest common whitespace prefix of non-empty lines
366
val nonEmptyLines = lines.filter(_.trim.nonEmpty)
367
- val maxSkip = if (nonEmptyLines.isEmpty) 0 else nonEmptyLines.map(line => line.prefixLength(_ == ' ')).min
+ val maxSkip = if (nonEmptyLines.isEmpty) 0 else nonEmptyLines.map(line => line.iterator.takeWhile(_ == ' ').size).min
368
369
// remove common whitespace prefix
370
lines.map(line => if (line.trim.nonEmpty) line.substring(maxSkip) else line).mkString("\n")
0 commit comments