diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 04:40:26 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 04:40:26 +0400 |
commit | 16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb (patch) | |
tree | c343f62cae43a87af590eb51f4987224082b2aac /src | |
parent | a6000809a34735ffe1c40bf07a9e291d3c767eb9 (diff) | |
download | dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.tar.gz dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.tar.bz2 dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.zip |
Add test and fix ${long section} format.
Diffstat (limited to 'src')
-rw-r--r-- | src/Model/DocumentationContent.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Model/DocumentationContent.kt b/src/Model/DocumentationContent.kt index ee91aed3..d3826434 100644 --- a/src/Model/DocumentationContent.kt +++ b/src/Model/DocumentationContent.kt @@ -62,7 +62,7 @@ fun String.parseLabel(index: Int): Pair<String, Int> { } c == '{' -> { val end = indexOf('}', index + 1) - return substring(index, end) to index + 2 + return substring(index + 1, end) to end + 2 } } return "" to -1 |