From e006f83a19f91848199dc76f0af92c6b4bf3b255 Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Sat, 16 May 2026 16:41:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=B9=E9=BD=90=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrillUsageReportExporter.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DrillUsageReportExporter.cs b/DrillUsageReportExporter.cs index c380ebd..706b945 100644 --- a/DrillUsageReportExporter.cs +++ b/DrillUsageReportExporter.cs @@ -51,11 +51,14 @@ namespace DrillTools private static void AppendRows(StringBuilder report, IReadOnlyList rows) { + // Column widths and gaps match the header/separator layout exactly. + // Separator sections: [0..6]=7 [9..16]=8 [20..25]=6 [37..40]=4 [52..58]=7 [61..71]=11 [74..86]=13 [89..98]=10 + // Gaps between sections: 2sp 3sp 11sp 11sp 2sp 2sp 2sp foreach (var row in rows) { report.AppendLine(string.Format( CultureInfo.InvariantCulture, - "{0,8}{1,10}{2,10}{3,17}{4,16}{5,14}{6,15}{7,12}", + "{0,-7} {1,-8} {2,-6} {3,-4} {4,-7} {5,-11} {6,-13} {7,-10}", 1, row.ToolRef, row.ToolNumber, @@ -72,7 +75,7 @@ namespace DrillTools report.AppendLine("=========================================================== =========== ============= =========="); report.AppendLine(string.Format( CultureInfo.InvariantCulture, - "{0,69}{1,14}{2,15}{3,12}", + "{0,59} {1,-11} {2,-13} {3,-10}", "Totals:", rows.Sum(row => row.PlatedHits), rows.Sum(row => row.UnplatedHits),