diff options
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 2 | ||||
-rw-r--r-- | test/data/format/deprecated.class.html | 3 |
2 files changed, 5 insertions, 0 deletions
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 @@ <strong>Deprecated:</strong> This class sucks<br/> <br/> <br/> +<br/> <a href="test/index">test</a> / <a href="test/f">f</a><br/> <br/> <h1>f</h1> @@ -16,6 +17,7 @@ <strong>Deprecated:</strong> This function sucks<br/> <br/> <br/> +<br/> <a href="test/index">test</a> / <a href="test/p">p</a><br/> <br/> <h1>p</h1> @@ -23,6 +25,7 @@ <strong>Deprecated:</strong> This property sucks<br/> <br/> <br/> +<br/> <h3>Constructors</h3> <table> <tbody> |