From 722c9afcdf43e27ae82b30f8b21a6d0f967a7ee2 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 26 Feb 2015 16:28:05 +0100 Subject: use non-breaking spaces when generating signatures --- src/Model/Content.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Model') 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) -- cgit