diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-12 15:57:04 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-12 15:57:04 +0100 |
commit | 23af5e2540aca25ab64deec1821a069f827d7c77 (patch) | |
tree | e5b53761a5338b9931bfe6969cbee988596ec28e /src/Formats | |
parent | c5fc45ce7d8f83042420fa992aa9fc23efb0f555 (diff) | |
download | dokka-23af5e2540aca25ab64deec1821a069f827d7c77.tar.gz dokka-23af5e2540aca25ab64deec1821a069f827d7c77.tar.bz2 dokka-23af5e2540aca25ab64deec1821a069f827d7c77.zip |
use .trim() instead of .substring()
Diffstat (limited to 'src/Formats')
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 2 |
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")) } |