mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-13 21:15:23 -05:00
lib: screw whitespace in parsed XML
This commit is contained in:
@@ -443,7 +443,8 @@ impl KbinXml {
|
||||
let node_type = match input.attr("__type") {
|
||||
Some(name) => StandardType::from_name(name),
|
||||
None => {
|
||||
if text.len() == 0 {
|
||||
// Screw whitespace with pretty printed XML
|
||||
if text.trim().len() == 0 {
|
||||
StandardType::NodeStart
|
||||
} else {
|
||||
StandardType::String
|
||||
|
||||
Reference in New Issue
Block a user