lib: screw whitespace in parsed XML

This commit is contained in:
Matt Bilker
2018-06-12 20:04:12 +00:00
parent 7907a1bb91
commit 9d3848eff1

View File

@@ -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