mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
format-flowed: make quotes round-trip
This commit is contained in:
@@ -10,10 +10,7 @@ fn round_trip(input: &str) -> String {
|
||||
fn main() {
|
||||
check!().for_each(|data: &[u8]| {
|
||||
if let Ok(input) = std::str::from_utf8(data.into()) {
|
||||
let mut input = input.to_string();
|
||||
|
||||
// Only consider inputs that don't contain quotes.
|
||||
input.retain(|c| c != '>');
|
||||
let input = input.trim().to_string();
|
||||
|
||||
// Only consider inputs that are the result of unformatting format=flowed text.
|
||||
// At least this means that lines don't contain any trailing whitespace.
|
||||
|
||||
Reference in New Issue
Block a user