From ba16f209faaf02e3300f2c04fec6c9e5b9ebc152 Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Tue, 17 Mar 2020 09:30:24 +0100 Subject: Refactored extension method and signature builder. Added indentation to class signature. --- core/src/main/kotlin/model/aditionalExtras.kt | 6 +++--- core/src/main/kotlin/pages/ContentNodes.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/src/main/kotlin/model/aditionalExtras.kt b/core/src/main/kotlin/model/aditionalExtras.kt index 75f5f69a..853edd64 100644 --- a/core/src/main/kotlin/model/aditionalExtras.kt +++ b/core/src/main/kotlin/model/aditionalExtras.kt @@ -37,8 +37,8 @@ class Annotations(val content: List) : ExtraProperty { } } -object PrimaryConstructorExtra: ExtraProperty { - object PrimaryConstructorExtraKey: ExtraProperty.Key +object PrimaryConstructorExtra: ExtraProperty { + object PrimaryConstructorExtraKey: ExtraProperty.Key - override val key: ExtraProperty.Key = PrimaryConstructorExtraKey + override val key: ExtraProperty.Key = PrimaryConstructorExtraKey } \ No newline at end of file diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index eeefc3b9..46a71bc0 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -171,7 +171,7 @@ enum class ContentKind : Kind { } enum class TextStyle : Style { - Bold, Italic, Strong, Strikethrough, Paragraph, Block, Monospace + Bold, Italic, Strong, Strikethrough, Paragraph, Block, Monospace, Indented } fun ContentNode.dfs(predicate: (ContentNode) -> Boolean): ContentNode? = if (predicate(this)) { -- cgit