enriched-text

Rust parser for text/enriched as defined by rfc1523
git clone git://git.alexwennerberg.com/enriched-text
Log | Files | Refs | README | LICENSE

commit 9e5f450c95f06a8051e9be3da5d89987bba5baaa
parent 4952f6324caa00f9cfdf5c27d3bb044c08ab5fb4
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Mon, 10 Jan 2022 19:09:51 -0800

bug fix

https://fosstodon.org/@Johann150/107600897153109716

Diffstat:
Msrc/lib.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib.rs b/src/lib.rs @@ -143,7 +143,7 @@ impl<'a> EnrichedTextParser<'a> { lf_count += 1; i += 2; continue; - } else if text[0] == b'\n' { + } else if text[i] == b'\n' { // also handle text with LF line endings gracefully lf_count += 1; i += 1;