mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-06-29 09:58:42 +02:00
Used Element::append_text instead of append_text_node in TreeBuilder::process_text to prevent weird splitting of text when there is no element in between.
This commit is contained in:
parent
f54776ca0a
commit
65c91439f8
|
@ -97,7 +97,7 @@ impl TreeBuilder {
|
||||||
fn process_text(&mut self, text: String) {
|
fn process_text(&mut self, text: String) {
|
||||||
if self.depth() > 0 {
|
if self.depth() > 0 {
|
||||||
let top = self.stack.len() - 1;
|
let top = self.stack.len() - 1;
|
||||||
self.stack[top].append_text_node(text);
|
self.stack[top].append_text(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user