mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-07 01:55:13 -05:00
writer: trim newlines when writing from Element
This commit is contained in:
@@ -123,7 +123,7 @@ impl Writeable<Element> for Element {
|
||||
},
|
||||
|
||||
_ => {
|
||||
let value = Value::from_string(node_type, &text, array_mask > 0, count as usize)?;
|
||||
let value = Value::from_string(node_type, text.trim(), array_mask > 0, count as usize)?;
|
||||
let data = value.to_bytes()?;
|
||||
|
||||
if array_mask > 0 {
|
||||
|
||||
Reference in New Issue
Block a user