aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-13 13:35:43 +0300
committerEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-13 13:35:43 +0300
commit0b18da608eddfb48a40675d83ae3a92fc9a85fb6 (patch)
treef1742df720871d4e4eb9850b075e2de214e3a781 /core/src
parent6ad0c3bd63f9f5a5ed46f6f59bf00b1ddfeec794 (diff)
downloaddokka-0b18da608eddfb48a40675d83ae3a92fc9a85fb6.tar.gz
dokka-0b18da608eddfb48a40675d83ae3a92fc9a85fb6.tar.bz2
dokka-0b18da608eddfb48a40675d83ae3a92fc9a85fb6.zip
add nice toString()
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/Model/Content.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Model/Content.kt b/core/src/main/kotlin/Model/Content.kt
index 7c776bdb..77451d41 100644
--- a/core/src/main/kotlin/Model/Content.kt
+++ b/core/src/main/kotlin/Model/Content.kt
@@ -222,7 +222,11 @@ open class Content(): ContentBlock() {
sections.firstOrNull { tag.equals(it.tag, ignoreCase = true) }
companion object {
- val Empty = Content()
+ val Empty = object: Content() {
+ override fun toString(): String {
+ return "EMPTY_CONTENT"
+ }
+ }
fun of(vararg child: ContentNode): Content {
val result = MutableContent()