Minor
This commit is contained in:
@@ -68,25 +68,20 @@ internal class DescriptorRendererImpl(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun lt(): String {
|
private fun lt() = escape("<")
|
||||||
return escape("<")
|
private fun gt() = escape(">")
|
||||||
}
|
|
||||||
|
|
||||||
private fun gt(): String {
|
|
||||||
return escape(">")
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun arrow(): String {
|
private fun arrow(): String {
|
||||||
when (textFormat) {
|
return when (textFormat) {
|
||||||
DescriptorRenderer.TextFormat.PLAIN -> return escape("->")
|
DescriptorRenderer.TextFormat.PLAIN -> escape("->")
|
||||||
DescriptorRenderer.TextFormat.HTML -> return "→"
|
DescriptorRenderer.TextFormat.HTML -> "→"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun renderMessage(message: String): String {
|
private fun renderMessage(message: String): String {
|
||||||
when (textFormat) {
|
return when (textFormat) {
|
||||||
DescriptorRenderer.TextFormat.PLAIN -> return message
|
DescriptorRenderer.TextFormat.PLAIN -> message
|
||||||
DescriptorRenderer.TextFormat.HTML -> return "<i>" + message + "</i>"
|
DescriptorRenderer.TextFormat.HTML -> "<i>$message</i>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user