diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-09-07 14:31:53 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-09-10 13:13:21 +0200 |
commit | 825d8fd3bc868d8d9a80a354cd3fae95adceb7ac (patch) | |
tree | 3c873863d62931d7ca579bd2c84f65d86dd22ae2 /plugins/base/src/main/kotlin/parsers/Parser.kt | |
parent | a5434ae0141ac1a3d150f76937b0456ad15030e0 (diff) | |
download | dokka-825d8fd3bc868d8d9a80a354cd3fae95adceb7ac.tar.gz dokka-825d8fd3bc868d8d9a80a354cd3fae95adceb7ac.tar.bz2 dokka-825d8fd3bc868d8d9a80a354cd3fae95adceb7ac.zip |
Add escaping the at sign in modules and packages
Diffstat (limited to 'plugins/base/src/main/kotlin/parsers/Parser.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/parsers/Parser.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/parsers/Parser.kt b/plugins/base/src/main/kotlin/parsers/Parser.kt index 706f093b..894fa82f 100644 --- a/plugins/base/src/main/kotlin/parsers/Parser.kt +++ b/plugins/base/src/main/kotlin/parsers/Parser.kt @@ -43,7 +43,9 @@ abstract class Parser { private fun jkdocToListOfPairs(javadoc: String): List<Pair<String, String>> = "description $javadoc" .split("\n@") - .map { - it.substringBefore(' ') to it.substringAfter(' ') + .map { content -> + val contentWithEscapedAts = content.replace("\\@", "@") + val (tag, body) = contentWithEscapedAts.split(" ", limit = 2) + tag to body } } |