diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 18:22:02 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 18:22:02 +0400 |
commit | ad14ea91a52563c83a3aba0c7d279cd5535b77e4 (patch) | |
tree | d78275d4d0ff3e51f604f059aee1b485028156f4 /src/Formats | |
parent | 498448826d8762add15a524097e91e96b545a631 (diff) | |
download | dokka-ad14ea91a52563c83a3aba0c7d279cd5535b77e4.tar.gz dokka-ad14ea91a52563c83a3aba0c7d279cd5535b77e4.tar.bz2 dokka-ad14ea91a52563c83a3aba0c7d279cd5535b77e4.zip |
Fixing formats and started work on inline function body.
Diffstat (limited to 'src/Formats')
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 8 |
1 files changed, 5 insertions, 3 deletions
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) } } } |