diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-05 19:04:59 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-05 19:04:59 +0100 |
commit | e67355a8a48fa8df9d1c6a91a5d854bb183e3759 (patch) | |
tree | 58dc32b3bf45204af265fd12e699a0b5565eb370 /core/src | |
parent | a4053154631c08bd91fdb1dd098265e301d76a02 (diff) | |
download | dokka-e67355a8a48fa8df9d1c6a91a5d854bb183e3759.tar.gz dokka-e67355a8a48fa8df9d1c6a91a5d854bb183e3759.tar.bz2 dokka-e67355a8a48fa8df9d1c6a91a5d854bb183e3759.zip |
Fix DRI.withClass
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/links/DRI.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/links/DRI.kt b/core/src/main/kotlin/links/DRI.kt index fced7dde..67b8643b 100644 --- a/core/src/main/kotlin/links/DRI.kt +++ b/core/src/main/kotlin/links/DRI.kt @@ -67,7 +67,7 @@ data class DRI( } } -fun DRI.withClass(name: String) = copy(classNames = classNames.orEmpty() + ".$name") +fun DRI.withClass(name: String) = copy(classNames = if(classNames.isNullOrBlank()) name else "$classNames.$name") val DRI.parent: DRI get() = when { |