Refine kcpcli help again

This commit is contained in:
Mygod
2016-08-17 11:50:40 +08:00
parent 8454975a13
commit eee89774df
@@ -28,7 +28,8 @@ class KcpCliPreference(context: Context, attrs: AttributeSet) extends SummaryEdi
!line.startsWith(" --help,") &&
!line.startsWith(" --version,"))
.mkString("\n")
.replaceAll("[ ]{2,}", "\n"))
.replaceAll("[ ]{2,}", "\n")
.substring(1)) // remove 1st \n
.show()
val window = dialog.getWindow
val attrs = window.getAttributes