Commit eee89774 authored by Mygod's avatar Mygod

Refine kcpcli help again

parent 8454975a
...@@ -28,7 +28,8 @@ class KcpCliPreference(context: Context, attrs: AttributeSet) extends SummaryEdi ...@@ -28,7 +28,8 @@ class KcpCliPreference(context: Context, attrs: AttributeSet) extends SummaryEdi
!line.startsWith(" --help,") && !line.startsWith(" --help,") &&
!line.startsWith(" --version,")) !line.startsWith(" --version,"))
.mkString("\n") .mkString("\n")
.replaceAll("[ ]{2,}", "\n")) .replaceAll("[ ]{2,}", "\n")
.substring(1)) // remove 1st \n
.show() .show()
val window = dialog.getWindow val window = dialog.getWindow
val attrs = window.getAttributes val attrs = window.getAttributes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment