aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Formats/StructuredFormatService.kt4
-rw-r--r--test/data/format/deprecated.class.html6
-rw-r--r--test/data/format/javaDeprecated.html2
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 @@
<br/>
<h1>C</h1>
<code><span class="keyword">class </span><s><span class="identifier">C</span></s></code><br/>
-<strong>Deprecated: </strong>This class sucks<br/>
+<strong>Deprecated:</strong> This class sucks<br/>
<br/>
<br/>
<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/f">f</a><br/>
<br/>
<h1>f</h1>
<code><span class="keyword">fun </span><s><span class="identifier">f</span></s><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
-<strong>Deprecated: </strong>This function sucks<br/>
+<strong>Deprecated:</strong> This function sucks<br/>
<br/>
<br/>
<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/p/index">p</a><br/>
<br/>
<h1>p</h1>
<code><span class="keyword">val </span><s><span class="identifier">p</span></s><span class="symbol">: </span><span class="identifier">Int</span></code><br/>
-<strong>Deprecated: </strong>This property sucks<br/>
+<strong>Deprecated:</strong> This property sucks<br/>
<br/>
<br/>
<h3>Constructors</h3>
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 @@
<br/>
<h1>foo</h1>
<code><span class="keyword">public</span> <span class="keyword">open</span> <span class="keyword">fun </span><s><span class="identifier">foo</span></s><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
-<strong>Deprecated: </strong>use<a href="test/test/-foo/bar">#bar</a> instead <p></p>
+<strong>Deprecated:</strong> use<a href="test/test/-foo/bar">#bar</a> instead <p></p>
<br/>
<br/>
</BODY>