From 25b21a32e324c9db0cb89051a74c2c22069158c1 Mon Sep 17 00:00:00 2001 From: Cai <62058454+ACaiCat@users.noreply.github.com> Date: Sat, 8 Jun 2024 23:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9AConsoleSql=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=AF=B9=E5=85=B6=20(#182)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConsoleSql/Plugin.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ConsoleSql/Plugin.cs b/ConsoleSql/Plugin.cs index 496ceffd5..d5b84ca9f 100644 --- a/ConsoleSql/Plugin.cs +++ b/ConsoleSql/Plugin.cs @@ -104,20 +104,20 @@ private void Cmd(CommandArgs args) sb.Append("+"); foreach (DataColumn column in dt.Columns) { - sb.Append("----------------------+"); + sb.Append("----------------------------+"); } sb.AppendLine(); foreach (DataColumn column in dt.Columns) { - sb.AppendFormat("| {0,-20}", column.ColumnName); + sb.AppendFormat("| {0,-26} ", column.ColumnName); } sb.AppendLine("|"); sb.Append("+"); foreach (DataColumn column in dt.Columns) { - sb.Append("----------------------+"); + sb.Append("----------------------------+"); } sb.AppendLine(); @@ -126,14 +126,14 @@ private void Cmd(CommandArgs args) { foreach (DataColumn column in dt.Columns) { - sb.AppendFormat("| {0,-20}", row[column]); + sb.AppendFormat("| {0,-26} ", row[column]); } sb.AppendLine("|"); sb.Append("+"); foreach (DataColumn column in dt.Columns) { - sb.Append("----------------------+"); + sb.Append("----------------------------+"); } sb.AppendLine(); }