aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 04:40:26 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 04:40:26 +0400
commit16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb (patch)
treec343f62cae43a87af590eb51f4987224082b2aac /src/Model
parenta6000809a34735ffe1c40bf07a9e291d3c767eb9 (diff)
downloaddokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.tar.gz
dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.tar.bz2
dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.zip
Add test and fix ${long section} format.
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/DocumentationContent.kt2
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