diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-08 18:56:21 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-08 18:56:21 +0100 |
commit | 299b5c1566820128e3276f761404789e09b909a5 (patch) | |
tree | 8b17583f2baa5fa71ecee03b8848ba37c5469cee /core/src/main | |
parent | b7db2d39e75d88347a006ef3d8c16ee715cb43ec (diff) | |
download | dokka-299b5c1566820128e3276f761404789e09b909a5.tar.gz dokka-299b5c1566820128e3276f761404789e09b909a5.tar.bz2 dokka-299b5c1566820128e3276f761404789e09b909a5.zip |
line breaks between parameters
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/Formats/StructuredFormatService.kt | 8 |
1 files changed, 8 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) |