aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/documentables
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-07-22 14:29:25 +0200
committerGitHub <noreply@github.com>2021-07-22 14:29:25 +0200
commitbb712835958c823e06db8c39c0a1d32493f095b8 (patch)
tree3404f71e2014c1b6ab3edb566be32caaa5ed9db3 /plugins/base/src/main/kotlin/translators/documentables
parentb6dce5370b0c90932127499a903453b199e69c5a (diff)
downloaddokka-bb712835958c823e06db8c39c0a1d32493f095b8.tar.gz
dokka-bb712835958c823e06db8c39c0a1d32493f095b8.tar.bz2
dokka-bb712835958c823e06db8c39c0a1d32493f095b8.zip
Fix overflow in throws tables (#2028)
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index c611927c..61fbd7d2 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -452,7 +452,7 @@ open class DefaultPageCreator(
fun DocumentableContentBuilder.contentForThrows() {
val throws = tags.withTypeNamed<Throws>()
if (throws.isNotEmpty()) {
- header(4, "Throws")
+ header(2, "Throws")
sourceSetDependentHint(sourceSets = platforms.toSet(), kind = ContentKind.SourceSetDependentHint) {
platforms.forEach { sourceset ->
table(kind = ContentKind.Main, sourceSets = setOf(sourceset)) {
@@ -615,7 +615,7 @@ open class DefaultPageCreator(
styles = emptySet(),
extra = elementName?.let { name -> extra + SymbolAnchorHint(name, kind) } ?: extra
) {
- link(elementName.orEmpty(), elements.first().dri, kind = kind)
+ link(elementName.orEmpty(), elements.first().dri, kind = kind, styles = setOf(ContentStyle.RowTitle))
divergentGroup(
ContentDivergentGroup.GroupID(name),
elements.map { it.dri }.toSet(),