From 3afc0871189a736079cdc40a974842074739ecf1 Mon Sep 17 00:00:00 2001 From: hayanesuru Date: Tue, 12 May 2026 10:46:47 +0900 Subject: [PATCH] remove space --- haya_nbt/formatting.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/haya_nbt/formatting.rs b/haya_nbt/formatting.rs index c709e68..03b1ac1 100644 --- a/haya_nbt/formatting.rs +++ b/haya_nbt/formatting.rs @@ -19,8 +19,7 @@ impl Context { let mut text = format(e); text.push(','); if 1 + width + text.len() >= LINE_LIMIT { - w!(self, "\n "); - width = 4; + w!(self, "\n"); } else { w!(self, " "); width += 1 @@ -44,8 +43,8 @@ impl Context { w!(self, "pub const {}: &str = \"", name); - for chunk in data.as_bytes().chunks(LINE_LIMIT - 6) { - w!(self, "\\\n "); + for chunk in data.as_bytes().chunks(LINE_LIMIT - 2) { + w!(self, "\\\n"); self.out.write_all(chunk).unwrap(); } w!(self, "\";\n");