aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/StructuredFormatService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-12 15:57:04 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-12 15:57:04 +0100
commit23af5e2540aca25ab64deec1821a069f827d7c77 (patch)
treee5b53761a5338b9931bfe6969cbee988596ec28e /src/Formats/StructuredFormatService.kt
parentc5fc45ce7d8f83042420fa992aa9fc23efb0f555 (diff)
downloaddokka-23af5e2540aca25ab64deec1821a069f827d7c77.tar.gz
dokka-23af5e2540aca25ab64deec1821a069f827d7c77.tar.bz2
dokka-23af5e2540aca25ab64deec1821a069f827d7c77.zip
use .trim() instead of .substring()
Diffstat (limited to 'src/Formats/StructuredFormatService.kt')
-rw-r--r--src/Formats/StructuredFormatService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt
index 0301543c..977d81d0 100644
--- a/src/Formats/StructuredFormatService.kt
+++ b/src/Formats/StructuredFormatService.kt
@@ -124,7 +124,7 @@ public abstract class StructuredFormatService(val locationService: LocationServi
val deprecationValue = deprecationParameter?.details(DocumentationNode.Kind.Value)?.firstOrNull()
if (deprecationValue != null) {
to.append(formatStrong("Deprecated: "))
- appendLine(to, formatText(deprecationValue.name.substring(0, deprecationValue.name.length()-1)))
+ appendLine(to, formatText(deprecationValue.name.trim("\"")))
} else {
appendLine(to, formatStrong("Deprecated"))
}