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
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ impl TreeBuilder {
|
|||
fn process_text(&mut self, text: String) {
|
||||
if self.depth() > 0 {
|
||||
let top = self.stack.len() - 1;
|
||||
self.stack[top].append_text_node(text);
|
||||
self.stack[top].append_text(text);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue