[33mcommit 943a259fd1c1fc9731a3ebc7124fb1c0bb742882[m[33m ([m[1;36mHEAD[m[33m -> [m[1;32mmain[m[33m, [m[1;31mthyestes/main[m[33m)[m
Author: Simon Tatham <anakin@pobox.com>
Date:   Sat Oct 12 10:56:11 2024 +0100

    Update to html2text 0.13.0.
    
    This brings a new feature: we can set 'white-space: pre-wrap' as a CSS
    attribute, preserving details of whitespace (multiple spaces, spaces
    at start of paragraph) while still wrapping words. The web Mastodon
    client sets this by default on <p> elements, and I think we should
    too, because it means indented displays such as code snippets are
    displayed properly.
    
    (Particularly important in Python, where the whitespace is semantic!
    E.g. https://mastodon.social/@glyph/112628092787725236 rendered
    illegibly before this change, and now you can see what the code is
    supposed to be doing.)
    
    0.13.0 also includes an API change making the text_renderer module
    private. But that's OK, we can still import all the things we needed
    from the parent module. The net effect is to save us 15 characters :-)

[1mdiff --git a/src/html.rs b/src/html.rs[m
[1mindex 3b7f78f..298d6d7 100644[m
[1m--- a/src/html.rs[m
[1m+++ b/src/html.rs[m
[36m@@ -1,4 +1,4 @@[m
[31m-use html2text::render::text_renderer::{[m
[32m+[m[32muse html2text::render::{[m
     TaggedLine, TaggedLineElement, TextDecorator,[m
 };[m
 pub use html2text::RenderTree;[m
[36m@@ -184,6 +184,7 @@[m [mpub fn parse(html: &str) -> Result<RenderTree, html2text::Error> {[m
         r##"[m
 .mention { color: #010203; }[m
 .hashtag { color: #040506; }[m
[32m+[m[32mp { white-space: pre-wrap; }[m
 "##,[m
     )?;[m
     let dom = cfg.parse_html(html.as_bytes())?;[m
