From 0c14c16a21232b2ad32447f05479a5ef9abee70f Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Mon, 2 Mar 2026 11:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=92=BB=E5=B8=A6=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=BE=93=E5=87=BA=E6=9C=AB=E5=B0=BE=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E7=A9=BA=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 DrillTapeProcessor 和 MainWindowViewModel 中的钻带生成逻辑里, 为 M30 结束标记后添加换行符,确保输出文件符合标准钻带文件格式。 🤖 Generated with [Claude Code](https://claude.com/claude-code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- DrillTapeProcessor.cs | 3 ++- MainWindowViewModel.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DrillTapeProcessor.cs b/DrillTapeProcessor.cs index c33a2fd..d6dcff0 100644 --- a/DrillTapeProcessor.cs +++ b/DrillTapeProcessor.cs @@ -665,7 +665,8 @@ namespace DrillTools.Integration // 添加结束标记 result.Add("M30"); - return string.Join("\r\n", result); + // 在M30后添加空行,符合标准钻带文件格式 + return string.Join("\r\n", result) + "\r\n"; } /// diff --git a/MainWindowViewModel.cs b/MainWindowViewModel.cs index e622f7d..536a578 100644 --- a/MainWindowViewModel.cs +++ b/MainWindowViewModel.cs @@ -784,7 +784,8 @@ namespace DrillTools // 添加结束标记 result.Add("M30"); - return string.Join("\r\n", result); + // 在M30后添加空行,符合标准钻带文件格式 + return string.Join("\r\n", result) + "\r\n"; } ///