Fix the trimmed fir line of preformatted lines (for ascii art)
parent
a739b0da61
commit
25c4d83d4d
|
@ -285,7 +285,7 @@ impl State {
|
|||
(NodeType::ListItem, Some(gemtext::Node::ListItem(_))) => (),
|
||||
_ => self.nodes.push(vec![]),
|
||||
}
|
||||
let node_text = self.pending_node_content.trim().to_string();
|
||||
let node_text = self.pending_node_content.trim_end().to_string();
|
||||
let new_node = self.pending_node_type.take().construct(node_text);
|
||||
let last_cluster = self.nodes.last_mut().expect("empty cluster list??");
|
||||
last_cluster.push(new_node);
|
||||
|
|
Loading…
Reference in New Issue