aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Content.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Content.kt')
-rw-r--r--src/Model/Content.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Model/Content.kt b/src/Model/Content.kt
index f74a4461..9864ee42 100644
--- a/src/Model/Content.kt
+++ b/src/Model/Content.kt
@@ -132,3 +132,10 @@ public class Content() : ContentBlock() {
val Empty = Content()
}
}
+
+fun javadocSectionDisplayName(sectionName: String?): String? =
+ when(sectionName) {
+ "param" -> "Parameters"
+ "throws", "exception" -> "Exceptions"
+ else -> sectionName?.capitalize()
+ }