From f7c2f2a40b946538e582719bfd61b73357e9ccb6 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 26 Feb 2015 19:45:36 +0100 Subject: add another blank line after deprecation notice --- src/Formats/StructuredFormatService.kt | 2 ++ test/data/format/deprecated.class.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 8d8341dd..70b2a3c1 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -164,11 +164,13 @@ public abstract class StructuredFormatService(locationService: LocationService, if (deprecationValue != null) { to.append(formatStrong("Deprecated:")).append(" ") appendLine(to, formatText(deprecationValue.name.trim("\""))) + appendLine(to) } else if (deprecation?.content != Content.Empty) { to.append(formatStrong("Deprecated:")).append(" ") to.append(formatText(location, deprecation!!.content)) } else { appendLine(to, formatStrong("Deprecated")) + appendLine(to) } } } diff --git a/test/data/format/deprecated.class.html b/test/data/format/deprecated.class.html index 922306fc..600b362f 100644 --- a/test/data/format/deprecated.class.html +++ b/test/data/format/deprecated.class.html @@ -9,6 +9,7 @@ Deprecated: This class sucks


+
test / f

f

@@ -16,6 +17,7 @@ Deprecated: This function sucks


+
test / p

p

@@ -23,6 +25,7 @@ Deprecated: This property sucks


+

Constructors

-- cgit