From c11ae71c3fdad03f1ba0624ca693b34782f1e6e9 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 16 Feb 2015 12:00:07 +0100 Subject: convert doc tags to sections --- src/Model/Content.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Model') 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() + } -- cgit