aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-01-08 18:56:21 +0100
committerDmitry Jemerov <yole@jetbrains.com>2016-01-08 18:56:21 +0100
commit299b5c1566820128e3276f761404789e09b909a5 (patch)
tree8b17583f2baa5fa71ecee03b8848ba37c5469cee
parentb7db2d39e75d88347a006ef3d8c16ee715cb43ec (diff)
downloaddokka-299b5c1566820128e3276f761404789e09b909a5.tar.gz
dokka-299b5c1566820128e3276f761404789e09b909a5.tar.bz2
dokka-299b5c1566820128e3276f761404789e09b909a5.zip
line breaks between parameters
-rw-r--r--core/src/main/kotlin/Formats/StructuredFormatService.kt8
-rw-r--r--core/testdata/format/paramTag.md1
-rw-r--r--core/testdata/format/throwsTag.md1
3 files changed, 10 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt
index d830fda7..1d464396 100644
--- a/core/src/main/kotlin/Formats/StructuredFormatService.kt
+++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt
@@ -254,9 +254,17 @@ abstract class StructuredFormatService(locationService: LocationService,
fun appendSectionWithSubject(title: String, subjectSections: List<ContentSection>) {
appendHeader(to, title, 3)
+ var first: Boolean = true
subjectSections.forEach {
val subjectName = it.subjectName
if (subjectName != null) {
+ if (first) {
+ first = false
+ }
+ else {
+ appendLine(to)
+ }
+
appendAnchor(to, subjectName)
to.append(formatCode(subjectName)).append(" - ")
formatText(location, it, to)
diff --git a/core/testdata/format/paramTag.md b/core/testdata/format/paramTag.md
index 882083fe..20d8faac 100644
--- a/core/testdata/format/paramTag.md
+++ b/core/testdata/format/paramTag.md
@@ -8,6 +8,7 @@
### Parameters
`x` - A string
+
`y` - A number with a really long description that spans multiple lines and goes
on and on and is very interesting to read
diff --git a/core/testdata/format/throwsTag.md b/core/testdata/format/throwsTag.md
index d0a4e610..21225297 100644
--- a/core/testdata/format/throwsTag.md
+++ b/core/testdata/format/throwsTag.md
@@ -8,6 +8,7 @@
### Exceptions
`IllegalArgumentException` - on Mondays
+
`NullPointerException` - on Tuesdays