From f87dc291140ccb63919ab20f56c4f86f6df38dde Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 8 Dec 2025 20:11:10 +0800 Subject: Skip empty descriptions in update editor --- src/bin/jv.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/bin/jv.rs') diff --git a/src/bin/jv.rs b/src/bin/jv.rs index de92a69..2aa7b92 100644 --- a/src/bin/jv.rs +++ b/src/bin/jv.rs @@ -2670,7 +2670,10 @@ async fn start_update_editor( // Get description (all content after the separator) let description = lines[sep_idx + 1..].join("\n").trim().to_string(); - update_info.insert(path, (new_version.to_string(), description)); + // Only add to update_info if description is not empty after trimming + if !description.is_empty() { + update_info.insert(path, (new_version.to_string(), description)); + } } } } -- cgit