We have moved to a new Sailfish OS Forum. Please start new discussions there.
5

[Bug] Leading whitespace is not display in mails

asked 2016-11-29 12:51:05 +0300

hoschi gravatar image

updated 2016-11-30 09:36:02 +0300

DaveRo gravatar image

Hello! I've mailed me some plain source code in an email an noticed, that a leading whitespace character is not printed (tab or space). This happens with text and html based mails. Not just it looks ugly (identation lost), it is just wrong and doesn't show the real content of the mail.
Example original:

/* this is a multiline comment
 * source: www.jolla.com
 */

Example on Jolla:

/* this is a multiline comment
* source: www.jolla.com
*/

Please try to configure Qt, the WebView or whatever is used to show the content of the mail as-is.

Thank you

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2016-11-29 18:00:02 +0300

DaveRo gravatar image

I found it does display your example correctly if the text is in <pre> tags in an html email. (Jolla C 2.0.5.6)

edit flag offensive delete publish link more

Comments

1

That is normal behavior in html code, to preserv and render white space inside <pre> tags and ignore them otherwise. It's hard to know where this should be in effect in an e-mail, as you both want to display it as written, but at the same time support "real" html e-mail.

But for plain text, all characters, including white space, should be rendered.

Mohjive ( 2016-11-29 21:39:51 +0300 )edit
2

@Mohjive Agreed. I confirm the plain-text bug. But I am contradicting @hoschi 's assertion in the OP that it happens with html email.

FWIW the plain-text case is not caused by format-flowed, which I originally suspected. I didn't try alternative encoding, such as base64, which the Jolla email app generates, or alternative charsets.

DaveRo ( 2016-11-29 22:34:31 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2016-11-29 12:51:05 +0300

Seen: 101 times

Last updated: Nov 29 '16