Open progfolio opened 5 months ago
Likely caused by using shr
to render the reply inside an HTML blockquote
tag. Maybe we need to duplicate newlines, or replace them with br
tags. What do you think?
Replacing newlines with "\
" gets us part of the way there in ement-room--render-html
:
- (insert string))
+ (insert (replace-regexp-in-string "\n" "<br>" string))
But that will also replace newlines in a reply's already formatted HTML, so it doesn't seem like the right solution to me. Haven't had much time to dig into the source, but is there a way to separate the quoted portion of a reply from the body of the actual reply?
Haven't had much time to dig into the source, but is there a way to separate the quoted portion of a reply from the body of the actual reply?
Yes, but that is more easily handled by #150, which I want to merge soon, but haven't had time to test. If anyone wants to test that and provide feedback, it would help.
OS/platform
Arch Linux
Emacs version and provenance
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.39, cairo version 1.18.0) of 2024-01-04
Emacs command
emacs
Emacs frame type
GUI
Ement package version and provenance
version: c8fa944 0.14-pre installed via Elpaca
Actions taken
Android Element display for comparison:
Observed results
The reply should be formatted as I wrote it.
Expected results
The reply's formatting elides newlines.
Backtrace
No response
Etc.
No response