xi-conversations

Minimal clone of thunderbird conversations
git clone https://git.ce9e.org/xi-conversations.git

commit
b6bf41068312b87912362ee062f0ba9a0ddf0230
parent
9714c03e4c9363365c46f7819542b674e5e081e1
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-04-02 06:13
strip carriage return from body

this might help with an issue where carriage returns are converted to
extra newlines on copy. But even if it doesn't, it makes everything a
bit simpler.

Diffstat

M content/js/body.js 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/content/js/body.js b/content/js/body.js

@@ -60,7 +60,7 @@ var renderBody = function(parent, text) {
   60    60 	// https://en.wikipedia.org/wiki/Posting_style
   61    61 	// http://www.asciiribbon.org/
   62    62 
   63    -1 	var [body, ...sig] = text.split('\n-- \n');
   -1    63 	var [body, ...sig] = text.replaceAll('\r', '').split('\n-- \n');
   64    64 	renderQuotes(parent, body.split('\n'));
   65    65 
   66    66 	if (sig.length) {