From 69cb86a7c5f8523778441b357b39996ed372610d Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 17 Aug 2016 09:09:30 +0800 Subject: [PATCH] Format the help output of kcptun --- kcptun/kcptun | 2 +- .../com/github/shadowsocks/preferences/KcpCliPreference.scala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kcptun/kcptun b/kcptun/kcptun index e8349a30..ca9807a2 160000 --- a/kcptun/kcptun +++ b/kcptun/kcptun @@ -1 +1 @@ -Subproject commit e8349a306372700f5e5ccbda1592ced01760088c +Subproject commit ca9807a2f30e3c6c0d7eb25ee865fb46fb6aef89 diff --git a/src/main/scala/com/github/shadowsocks/preferences/KcpCliPreference.scala b/src/main/scala/com/github/shadowsocks/preferences/KcpCliPreference.scala index 4194c78a..e5a8c64f 100644 --- a/src/main/scala/com/github/shadowsocks/preferences/KcpCliPreference.scala +++ b/src/main/scala/com/github/shadowsocks/preferences/KcpCliPreference.scala @@ -27,7 +27,8 @@ class KcpCliPreference(context: Context, attrs: AttributeSet) extends SummaryEdi !line.startsWith(" --path ") && !line.startsWith(" --help,") && !line.startsWith(" --version,")) - .mkString("\n")) + .mkString("\n") + .replaceAll("[ ]{2,}", "\n")) .show() val window = dialog.getWindow val attrs = window.getAttributes