From 299b5c1566820128e3276f761404789e09b909a5 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 8 Jan 2016 18:56:21 +0100 Subject: line breaks between parameters --- core/src/main/kotlin/Formats/StructuredFormatService.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/src') 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) { 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) -- cgit