🦠 The Definitive Gemini Protocol Toolkit
gemini gemini-protocol gemtext parser zero-dependency toolkit ast converter html markdown cli networking

fix(ast): non-latin characters interpreted as whitespace

fuwn.net 5c2fbd45 56f53ddc

verified
+8 -4
+1 -1
Cargo.toml
··· 2 2 3 3 [package] 4 4 name = "germ" 5 - version = "0.3.9" 5 + version = "0.3.10" 6 6 authors = ["Fuwn <contact@fuwn.me>"] 7 7 edition = "2021" 8 8 description = "The Ultimate Gemini Toolkit."
+7 -3
src/ast/container.rs
··· 251 251 } 252 252 } 253 253 "" if !*in_preformatted => { 254 - // If the line has nothing on it, it is a whitespace line, as long as 255 - // we aren't in a preformatted line context. 256 - nodes.push(Node::Whitespace); 254 + if line.is_empty() { 255 + // If the line has nothing on it, it is a whitespace line, as long 256 + // as we aren't in a preformatted line context. 257 + nodes.push(Node::Whitespace); 258 + } else { 259 + nodes.push(Node::Text(line.to_string())); 260 + } 257 261 258 262 break; 259 263 }