From 7003ad81924859cbe6fd5974a95295f1f8588290 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 26 Feb 2015 13:20:41 +0100 Subject: fix formatting of "deprecated" notice in markdown --- src/Formats/StructuredFormatService.kt | 4 ++-- test/data/format/deprecated.class.html | 6 +++--- test/data/format/javaDeprecated.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 2eb298d8..00ec6db4 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -155,10 +155,10 @@ public abstract class StructuredFormatService(locationService: LocationService, val deprecationParameter = deprecation!!.details(DocumentationNode.Kind.Parameter).firstOrNull() val deprecationValue = deprecationParameter?.details(DocumentationNode.Kind.Value)?.firstOrNull() if (deprecationValue != null) { - to.append(formatStrong("Deprecated: ")) + to.append(formatStrong("Deprecated:")).append(" ") appendLine(to, formatText(deprecationValue.name.trim("\""))) } else if (deprecation?.content != Content.Empty) { - to.append(formatStrong("Deprecated: ")) + to.append(formatStrong("Deprecated:")).append(" ") to.append(formatText(location, deprecation!!.content)) } else { appendLine(to, formatStrong("Deprecated")) diff --git a/test/data/format/deprecated.class.html b/test/data/format/deprecated.class.html index bc44620d..352bd435 100644 --- a/test/data/format/deprecated.class.html +++ b/test/data/format/deprecated.class.html @@ -6,21 +6,21 @@

C

class C
-Deprecated: This class sucks
+Deprecated: This class sucks


test / f

f

fun f(): Unit
-Deprecated: This function sucks
+Deprecated: This function sucks


test / p

p

val p: Int
-Deprecated: This property sucks
+Deprecated: This property sucks


Constructors

diff --git a/test/data/format/javaDeprecated.html b/test/data/format/javaDeprecated.html index aaeed534..ca818bb7 100644 --- a/test/data/format/javaDeprecated.html +++ b/test/data/format/javaDeprecated.html @@ -7,7 +7,7 @@

foo

public open fun foo(): Unit
-Deprecated: use#bar instead

+Deprecated: use#bar instead



-- cgit