From 23af5e2540aca25ab64deec1821a069f827d7c77 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 12 Jan 2015 15:57:04 +0100 Subject: use .trim() instead of .substring() --- src/Formats/StructuredFormatService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Formats') 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")) } -- cgit