aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Formats
diff options
context:
space:
mode:
authorKrystianUjma <kujma@virtuslab.com>2019-06-25 13:12:24 +0200
committerKrystianUjma <kujma@virtuslab.com>2019-06-25 13:12:24 +0200
commit72b45b70f207e8d289db1ee6554722472b7430e7 (patch)
treed32d3d26bcf3149cd6fb86a79605825ce68e35dd /core/src/main/kotlin/Formats
parent2b7c9e0a4185e199ffc6aa0f8f1437f08320d30b (diff)
downloaddokka-72b45b70f207e8d289db1ee6554722472b7430e7.tar.gz
dokka-72b45b70f207e8d289db1ee6554722472b7430e7.tar.bz2
dokka-72b45b70f207e8d289db1ee6554722472b7430e7.zip
fix *.dataTags tests
Diffstat (limited to 'core/src/main/kotlin/Formats')
-rw-r--r--core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt6
-rw-r--r--core/src/main/kotlin/Formats/StructuredFormatService.kt8
2 files changed, 13 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt b/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt
index 86bc9df9..3cdea156 100644
--- a/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt
+++ b/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt
@@ -35,6 +35,12 @@ open class KotlinWebsiteHtmlOutputBuilder(
}
}
+ override fun appendSinceKotlin(version: String) {
+ }
+
+ override fun appendSinceKotlinWrapped(version: String) {
+ }
+
override fun appendCode(body: () -> Unit) = wrapIfNotEmpty("<code>", "</code>", body)
protected fun div(to: StringBuilder, cssClass: String, otherAttributes: String = "", block: () -> Unit) {
diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt
index 62ea1108..7299670e 100644
--- a/core/src/main/kotlin/Formats/StructuredFormatService.kt
+++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt
@@ -114,6 +114,12 @@ abstract class StructuredOutputBuilder(val to: StringBuilder,
appendCode { appendText(version) }
}
+ open fun appendSinceKotlinWrapped(version: String) {
+ wrap(" (", ")") {
+ appendSinceKotlin(version)
+ }
+ }
+
open fun appendSectionWithTag(section: ContentSection) {
appendParagraph {
appendStrong { appendText(section.tag) }
@@ -776,7 +782,7 @@ abstract class StructuredOutputBuilder(val to: StringBuilder,
}
if (membersList.singleOrNull()?.sinceKotlin != null){
- wrap(" (", ")"){ appendSinceKotlin(membersList.single().sinceKotlin.toString()) }
+ appendSinceKotlinWrapped(membersList.single().sinceKotlin.toString())
}
// }
// if (members.singleOrNull()?.kind != NodeKind.ExternalClass) {