aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Model/DocumentationContent.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Model/DocumentationContent.kt b/src/Model/DocumentationContent.kt
index ed81b9e9..5ea745c5 100644
--- a/src/Model/DocumentationContent.kt
+++ b/src/Model/DocumentationContent.kt
@@ -35,6 +35,9 @@ class DocumentationContent(val summary: String, val description: String, val sec
return "$summary | " + sections.joinToString()
}
+ val hasDescription : Boolean
+ get() = !description.isEmpty() || sections.any()
+
class object {
val Empty = DocumentationContent("", "", listOf())
}