From 16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Sat, 12 Jul 2014 04:40:26 +0400 Subject: Add test and fix ${long section} format. --- src/Model/DocumentationContent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Model') 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 { } c == '{' -> { val end = indexOf('}', index + 1) - return substring(index, end) to index + 2 + return substring(index + 1, end) to end + 2 } } return "" to -1 -- cgit