Skip to content

Commit

Permalink
Scalameta: upgrade to v4.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Oct 11, 2024
1 parent 1bc8b0d commit a2b5016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._

object Dependencies {
val metaconfigV = "0.13.0"
val scalametaV = "4.10.1"
val scalametaV = "4.10.2"
val scalacheckV = "1.18.1"
val coursier = "2.1.10"
val munitV = "1.0.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1034,18 +1034,10 @@ class FormatWriter(formatOps: FormatOps) {

private def formatListBlock(
listIndent: String,
)(block: Scaladoc.ListBlock): Unit = {
val prefix = block.prefix
)(block: Scaladoc.ListBlock): Unit = block.items.foreach { item =>
val prefix = item.prefix
val itemIndent = getIndentation(listIndent.length + prefix.length + 1)
block.items.foreach { x =>
sb.append(listIndent).append(prefix).append(' ')
formatListTerm(itemIndent)(x)
}
}

private def formatListTerm(
itemIndent: String,
)(item: Scaladoc.ListItem): Unit = {
sb.append(listIndent).append(prefix).append(' ')
formatTextAfterMargin(item.text, itemIndent)
item.terms.foreach(formatTerm(_, itemIndent, sbNonEmpty = true))
}
Expand Down

0 comments on commit a2b5016

Please sign in to comment.