diff options
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) |