aboutsummaryrefslogtreecommitdiff
path: root/src/Java/JavaDocumentationBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/JavaDocumentationBuilder.kt')
-rw-r--r--src/Java/JavaDocumentationBuilder.kt4
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()