From 77eca84d2350fa77c9c8c8a0ce9cb41fad11aeb2 Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Thu, 14 May 2026 18:14:19 +0800 Subject: [PATCH] chore(format): strip trailing blank lines at EOF (codex diff-check fix) The previous split commit (764eb9f4) left three files with an extra blank line after the closing `}` because the sed/awk extraction pipeline appended one. `git diff --check` flagged: crates/openpencil-shell-core/src/mcp/parser.rs:344 crates/openpencil-shell-core/src/mcp/tools.rs:278 crates/openpencil-shell-core/src/widgets/property_panel.rs:585 All three normalized to end with exactly one newline after the final `}`. No semantic change. --- crates/openpencil-shell-core/src/mcp/parser.rs | 1 - crates/openpencil-shell-core/src/mcp/tools.rs | 1 - crates/openpencil-shell-core/src/widgets/property_panel.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/crates/openpencil-shell-core/src/mcp/parser.rs b/crates/openpencil-shell-core/src/mcp/parser.rs index 06899003b..58df6a591 100644 --- a/crates/openpencil-shell-core/src/mcp/parser.rs +++ b/crates/openpencil-shell-core/src/mcp/parser.rs @@ -341,4 +341,3 @@ fn extract_field<'a>(line: &'a str, key: &str) -> Option<&'a str> { .unwrap_or(val.len()); Some(line[val_start..val_start + end_rel].trim()) } - diff --git a/crates/openpencil-shell-core/src/mcp/tools.rs b/crates/openpencil-shell-core/src/mcp/tools.rs index 8e4fa94bf..84aa3004a 100644 --- a/crates/openpencil-shell-core/src/mcp/tools.rs +++ b/crates/openpencil-shell-core/src/mcp/tools.rs @@ -275,4 +275,3 @@ fn walk_node( walk_node(child, node.id.raw(), out); } } - diff --git a/crates/openpencil-shell-core/src/widgets/property_panel.rs b/crates/openpencil-shell-core/src/widgets/property_panel.rs index 9d1e90fb4..ced8eccd2 100644 --- a/crates/openpencil-shell-core/src/widgets/property_panel.rs +++ b/crates/openpencil-shell-core/src/widgets/property_panel.rs @@ -582,4 +582,3 @@ impl Widget for PropertyPanel { node } } -