enriched-text

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

commit ef2e725c9ecc0a61a1195b04db4be49507cf6443
parent e200316f30885cec99aef646de8a5043a9c191b2
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun,  9 Jan 2022 09:13:30 -0800

Update to newer RFC

Diffstat:
MCargo.toml | 4++--
MREADME.txt | 4++--
Mexamples/plain_text.rs | 1+
Msrc/lib.rs | 2+-
4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -5,5 +5,5 @@ edition = "2018" readme = "README.txt" license = "0BSD" repository = "https://git.alexwennerberg.com/enriched-text" -description = "A text/encriched parser for RFC1523" -keywords = ["text-enriched", "enriched-text", "rfc1523"] +description = "A text/encriched parser for RFC1896" +keywords = ["text-enriched", "enriched-text", "rfc1896"] diff --git a/README.txt b/README.txt @@ -1,9 +1,9 @@ text/enriched parser =================== -Parser for text/enriched, as defined in https://datatracker.ietf.org/doc/html/rfc1523 +Parser for text/enriched, as defined in https://datatracker.ietf.org/doc/html/rfc1896 -In "alpha" +In "alpha". WIP To contribute, git-send-email or send a git-format-patch to https://lists.flounder.online/patches/ diff --git a/examples/plain_text.rs b/examples/plain_text.rs @@ -1,5 +1,6 @@ use enriched_text::{EnrichedTextParser, Token}; +// TODO look at c program in https://datatracker.ietf.org/doc/html/rfc1896 fn main() { let input = "Dear world--\r\nHello! 😋 Let's be <bold>bold</bold><<>><<>>\r\n\r\nlove, Alex"; let parser = EnrichedTextParser::new(&input.as_bytes()); diff --git a/src/lib.rs b/src/lib.rs @@ -1,5 +1,5 @@ //! A parser for the text/enriched format, as described in -//! https://datatracker.ietf.org/doc/html/rfc1523 +//! https://datatracker.ietf.org/doc/html/rfc1896 #[derive(Debug, Eq, PartialEq)] pub enum Token {