Geary inserts trailing newlines to a sent mail
This doesn't matter when sending; however when you reply it creates the following problem: you move to the end of message being quoted, and see a text like (the
> represents quoted text):
> last line of text >
So you put a caret onto last
>, and press Backspace trying to remove that line, which makes Geary delete whole quote instead of just that line. And you can't undo it either. This is not a rare situation and is so annoying.
My research shows that this line is inserted by Geary when sending, and I suspect (I didn't confirm it yet though) that the newline being added at this function. However I didn't try fixing it and sending merge request yet as this function has comments, like
// Ensure that the last character is a newline, so I suspect it might not get accepted, so I wanted to report the problem first.
Steps to reproduce
- Start composing a new mail, and write in the body "test". Do not add a newline.
- Send it to yourself
- Upon receiving, press "View source" on the mail.
Just "test" word in the end of the source, without any newlines
It has "test" and newlines.