diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-05-29 13:52:43 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-05-29 13:52:43 +0200 |
commit | 64414ce984bc86e09b8724adbd01f1cb2646c17e (patch) | |
tree | 802710da5009b0b86519cc7cde9cdb6685cc7c99 /src/Java/JavaDocumentationBuilder.kt | |
parent | 2fc80c4aae0d2957b34b176b9a2a48cb5089f41c (diff) | |
download | dokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.tar.gz dokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.tar.bz2 dokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.zip |
apply code cleanup; fix couple of deprecations manually
Diffstat (limited to 'src/Java/JavaDocumentationBuilder.kt')
-rw-r--r-- | src/Java/JavaDocumentationBuilder.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt index d57210ae..466ba304 100644 --- a/src/Java/JavaDocumentationBuilder.kt +++ b/src/Java/JavaDocumentationBuilder.kt @@ -62,7 +62,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions, htmlBuilder.append(it.getText()) } } - val doc = Jsoup.parse(htmlBuilder.toString().trimLeading()) + val doc = Jsoup.parse(htmlBuilder.toString().trimStart()) doc.body().childNodes().forEach { convertHtmlNode(it) } @@ -142,7 +142,7 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions, "code", "literal" -> { val text = StringBuilder() tag.getDataElements().forEach { text.append(it.getText()) } - val escaped = text.toString().trimLeading().htmlEscape() + val escaped = text.toString().trimStart().htmlEscape() if (tag.getName() == "code") "<code>$escaped</code>" else escaped } else -> tag.getText() |