From ad14ea91a52563c83a3aba0c7d279cd5535b77e4 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 13 Oct 2014 18:22:02 +0400 Subject: Fixing formats and started work on inline function body. --- src/Formats/StructuredFormatService.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Formats') diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 75b51ab8..4285f8c9 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -55,6 +55,9 @@ public abstract class StructuredFormatService(val locationService: LocationServi val linkText = formatText(location, content.children) append(formatLink(linkText, content.href)) } + is ContentParagraph -> { + appendText(this, formatText(location, content.children)) + } else -> append(formatText(location, content.children)) } }.toString() @@ -82,7 +85,6 @@ public abstract class StructuredFormatService(val locationService: LocationServi continue appendLine(to, formatStrong(formatText(label))) appendLine(to, formatText(location, section)) - appendLine(to) } } } @@ -126,14 +128,14 @@ public abstract class StructuredFormatService(val locationService: LocationServi appendText(to, formatLink(memberLocation)) } appendTableCell(to) { - val breakdownBySummary = members.groupBy { it.doc.summary } + val breakdownBySummary = members.groupBy { formatText(location, it.doc.summary) } for ((summary, items) in breakdownBySummary) { for (signature in items) { appendBlockCode(to, formatText(location, languageService.render(signature))) } if (!summary.isEmpty()) { - appendText(to, formatText(location, summary)) + appendText(to, summary) } } } -- cgit