aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-26 16:28:05 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-26 16:28:05 +0100
commit722c9afcdf43e27ae82b30f8b21a6d0f967a7ee2 (patch)
treea288873000fc05263aca10a74182afa6c795a3c4 /src/Model
parent6714d6574a14200175d1d3db903e50ef4267aaf7 (diff)
downloaddokka-722c9afcdf43e27ae82b30f8b21a6d0f967a7ee2.tar.gz
dokka-722c9afcdf43e27ae82b30f8b21a6d0f967a7ee2.tar.bz2
dokka-722c9afcdf43e27ae82b30f8b21a6d0f967a7ee2.zip
use non-breaking spaces when generating signatures
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Content.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Model/Content.kt b/src/Model/Content.kt
index 5688e2b8..8e9c068d 100644
--- a/src/Model/Content.kt
+++ b/src/Model/Content.kt
@@ -30,6 +30,7 @@ public data class ContentText(val text: String) : ContentNode()
public data class ContentKeyword(val text: String) : ContentNode()
public data class ContentIdentifier(val text: String) : ContentNode()
public data class ContentSymbol(val text: String) : ContentNode()
+public object ContentNonBreakingSpace: ContentNode()
public class ContentParagraph() : ContentBlock()
public class ContentEmphasis() : ContentBlock()
@@ -89,6 +90,7 @@ fun ContentBlock.text(value: String) = append(ContentText(value))
fun ContentBlock.keyword(value: String) = append(ContentKeyword(value))
fun ContentBlock.symbol(value: String) = append(ContentSymbol(value))
fun ContentBlock.identifier(value: String) = append(ContentIdentifier(value))
+fun ContentBlock.nbsp() = append(ContentNonBreakingSpace)
fun ContentBlock.link(to: DocumentationNode, body: ContentBlock.() -> Unit) {
val block = ContentNodeDirectLink(to)