Skip to content

Commit

Permalink
Add missing trim where pandoc disagrees with everyone else
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Jan 15, 2024
1 parent 5a75883 commit c8a7098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ pub fn normalize(events: Vec<Event<'_>>) -> Vec<Event<'_>> {
normalized.push(Event::Text(text.to_string().into()))
}
(Some(Event::Text(text)), Event::HardBreak | Event::SoftBreak) => {
*text = text.to_string().into();
*text = text.trim_end().to_string().into();
normalized.push(event);
}

Expand Down

0 comments on commit c8a7098

Please sign in to comment.