diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Formats/HtmlTemplateService.kt | 2 | ||||
-rw-r--r-- | src/Model/Content.kt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Formats/HtmlTemplateService.kt b/src/Formats/HtmlTemplateService.kt index 54bfa300..859c37b7 100644 --- a/src/Formats/HtmlTemplateService.kt +++ b/src/Formats/HtmlTemplateService.kt @@ -4,7 +4,7 @@ public trait HtmlTemplateService { fun appendHeader(to: StringBuilder, title: String?) fun appendFooter(to: StringBuilder) - class object { + default object { public fun default(css: String? = null): HtmlTemplateService { return object : HtmlTemplateService { override fun appendFooter(to: StringBuilder) { diff --git a/src/Model/Content.kt b/src/Model/Content.kt index b9d67d5b..176be8d3 100644 --- a/src/Model/Content.kt +++ b/src/Model/Content.kt @@ -3,7 +3,7 @@ package org.jetbrains.dokka import kotlin.properties.Delegates public abstract class ContentNode { - class object { + default object { val empty = ContentEmpty } } @@ -126,7 +126,7 @@ public open class Content(): ContentBlock() { fun findSectionByTag(tag: String): ContentSection? = sections.firstOrNull { tag.equalsIgnoreCase(it.tag) } - class object { + default object { val Empty = Content() } } |