Paste of patch/diff in plain text mode loses formatting
Pretty much per-title.
- Create a source patch diff
- Create a new mail in Geary with plain-text mode on
- Copy/Paste diff in, verify it looks correct
- Send to self
- ???
- Discover a solution as to why the formatting was lost :)
The formatting isn't lost in rich-text mode, but I'm entirely unsure as to if sending a patch in rich-text mode is okay.
Looking at the source for the rich-text mail, the header is:
Date: Wed, 05 Aug 2020 09:22:03 +1200
From: Luke Jones <luke@ljones.dev>
Subject: asdf
To: flukejones <luke@ljones.dev>
Message-Id: <R06KEQ.N01I1HX1BF642@ljones.dev>
X-Mailer: geary/3.36.2
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=-6vaAQglG5mszqlRtjTgh"
--=-6vaAQglG5mszqlRtjTgh
Content-Type: text/plain; charset=us-ascii; format=flowed
From 61e7ffe80b12db8ebb6033cfe2b70cccaefc07e1 Mon Sep 17 00:00:00 2001
From: Luke D Jones <luke@ljones.dev>
Date: Sat, 1 Aug 2020 20:33:28 +1200
Subject: [PATCH] HID: asus: add support for ASUS N-Key keyboard
Enable missing functionality of the keyboard found in many ASUS
vs plain-text
Date: Wed, 05 Aug 2020 09:23:55 +1200
From: Luke Jones <luke@ljones.dev>
Subject: sdvavqerv
To: flukejones <luke@ljones.dev>
Message-Id: <V36KEQ.J9CZX0H9RU6M3@ljones.dev>
X-Mailer: geary/3.36.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
From 61e7ffe80b12db8ebb6033cfe2b70cccaefc07e1 Mon Sep 17 00:00:00 2001
From: Luke D Jones <luke@ljones.dev>
Date: Sat, 1 Aug 2020 20:33:28 +1200
Subject: [PATCH] HID: asus: add support for ASUS N-Key keyboard
Enable missing functionality of the keyboard found in many ASUS
and then I looked at the rest of the plain-text email source and the formatting appears to be fine.... I'm very lost now....
The patch in question is this one.
Compared to the plain-text sent from evolution
Source of emails is below.