From 219dbd8c423b8996b7e1ceb97fae98c8b8774322 Mon Sep 17 00:00:00 2001 From: Nico de Haen Date: Fri, 15 May 2026 23:11:33 +0200 Subject: [PATCH] fix: use correct dir converting plaintext to HTML (#8248) It turned out for desktop the style unicode-bidi: plaintext is needed. dir="auto" didn't work. The style only without dir attribute worked too but maybe it's better to have both. With this change https://github.com/deltachat/deltachat-desktop/issues/6345 is also solved for long messages that have a "Show full message" dialog --- src/html.rs | 8 ++++---- src/plaintext.rs | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/html.rs b/src/html.rs index bc4e4bfbc..cfe92455c 100644 --- a/src/html.rs +++ b/src/html.rs @@ -304,7 +304,7 @@ mod tests { - + This message does not have Content-Type nor Subject.
"# @@ -322,7 +322,7 @@ This message does not have Content-Type nor Subject.
- + message with a non-UTF-8 encoding: äöüßÄÖÜ
"# @@ -341,7 +341,7 @@ message with a non-UTF-8 encoding: äöüßÄÖÜ
- + This line ends with a space and will be merged with the next one due to format=flowed.

This line does not end with a space
@@ -362,7 +362,7 @@ and will be wrapped as usual.
- + mime-modified should not be set set as there is no html and no special stuff;
although not being a delta-message.
test some special html-characters as < > and & but also " and ' :)
diff --git a/src/plaintext.rs b/src/plaintext.rs index 349b02021..53ee62e31 100644 --- a/src/plaintext.rs +++ b/src/plaintext.rs @@ -39,7 +39,7 @@ impl PlainText { - + "# .to_string(); @@ -132,7 +132,7 @@ http://link-at-start-of-line.org - + line 1
line 2
line with https://link-mid-of-line.org and http://link-end-of-line.com/file?foo=bar%20
@@ -156,7 +156,7 @@ line with https://link-mid-of-line.org - + Foo
bar
@@ -178,7 +178,7 @@ bar
- + line with <http://encapsulated.link/?foo=_bar> here!
"# @@ -199,7 +199,7 @@ line with <http://encapsulated.l - + line with nohttp://no.link here
"# @@ -220,7 +220,7 @@ line with nohttp://no.link here
- + just an address:
foo@bar.org another@one.de
"# @@ -241,7 +241,7 @@ just an address: foo@bar.org - + line still line
>quote
>still quote
@@ -265,7 +265,7 @@ line still line
- + linestill line
>quote
>still quote
@@ -289,7 +289,7 @@ linestill line
- + line
still line
>quote
@@ -314,7 +314,7 @@ still line
- + def foo():
    pass