From 0d0fc1f2bf8f09106e53626bc024298dc91361b8 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Feb 2015 18:32:12 +0100 Subject: distinguish ContentBlock (a ContentNode that has children) from leaf nodes --- src/Formats/StructuredFormatService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Formats') diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 6ec75379..ec4cff89 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -69,7 +69,7 @@ public abstract class StructuredFormatService(val locationService: LocationServi is ContentBlockCode -> { appendBlockCode(this, formatText(location, content.children)) } - else -> append(formatText(location, content.children)) + is ContentBlock -> append(formatText(location, content.children)) } }.toString() } -- cgit