diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 15:35:00 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 15:35:00 +0100 |
commit | 3fc3e33a0eff0198ed89cc94197cb21653bf1ca2 (patch) | |
tree | 876215d35aa29f49d25645ad92edfe190f3364e6 /src/Formats/StructuredFormatService.kt | |
parent | feca80b65581e688b1e9a3e807dfce2e17fd4a13 (diff) | |
download | dokka-3fc3e33a0eff0198ed89cc94197cb21653bf1ca2.tar.gz dokka-3fc3e33a0eff0198ed89cc94197cb21653bf1ca2.tar.bz2 dokka-3fc3e33a0eff0198ed89cc94197cb21653bf1ca2.zip |
fix formatting of overload signatures
Diffstat (limited to 'src/Formats/StructuredFormatService.kt')
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 2131d65d..2d326854 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -148,13 +148,16 @@ public abstract class StructuredFormatService(val locationService: LocationServi appendTableCell(to) { val breakdownBySummary = members.groupBy { formatText(location, it.summary) } for ((summary, items) in breakdownBySummary) { - for (signature in items) { + val signatureTexts = items map { signature -> val signature = languageService.render(signature) val signatureAsCode = ContentCode() signatureAsCode.append(signature) - to.append(formatText(location, signatureAsCode)) + formatText(location, signatureAsCode) } - + signatureTexts.subList(0, signatureTexts.size()-1).forEach { + appendLine(to, it) + } + to.append(signatureTexts.last()) if (!summary.isEmpty()) { to.append(summary) } |