Fix the trimmed fir line of preformatted lines (for ascii art)

main
kirbylife 2024-08-07 01:16:58 -06:00
parent a739b0da61
commit 25c4d83d4d
1 changed files with 1 additions and 1 deletions

View File

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