diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt | 6 | ||||
-rw-r--r-- | core/src/main/kotlin/Formats/StructuredFormatService.kt | 8 |
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) { |