Re: [Evolution] Mails Composed In HTML - Tab Spaces Result In New Lines





Connect to Exchange via EWS
I suspect that is at the root of the problems! (As in that it's an
Exchange thing, rather than an Evolution one.)

Actually, I can confirm it is something to do with Exchange/EWS -
sending through an IMAP/SMTP account, everything looks fine; sending
through an EWS connected one, the lines are split. (This is with Evo
3.18.5.2 on F23 as well.)

However ...

If you look at the message using Outlook, then it's not split.  The
main difference between the two routes is that sending through EWS, the
content gets BASE64 encoded and in the process, extra new-lines are
inserted into the HTML. If I send

 "text <tab>- <tab>text"

Then the SMTP route gives 

====
    --=-JCCN7mn2gSckS7Wca11/
    Content-Type: text/html; charset="utf-8"
    Content-Transfer-Encoding: 7bit

    <html><head></head><body><div><br></div><div>text<span class="Apple-tab-span" style="white-space:pre">  
</span>-<span class="Apple-tab-span" style="white-space:pre">   
</span>text</div><div><br></div><div><br></div></body></html>
    --=-JCCN7mn2gSckS7Wca11/--
====

The EWS route gives (this is the decoded BASE64):

====
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body>
    <div><br>
    </div>
    <div>text<span class="Apple-tab-span" style="white-space:pre"> </span>-<span class="Apple-tab-span" 
style="white-space:pre">
    </span>text</div>
    <div><br>
    </div>
    <div><br>
    </div>
    </body>
    </html>
====

And the displayed output in Evolution is

====
    text -
    text
====

So it seems that the HTML has a newline before the second "text" within
the <span> tag which isn't there in the SMTP version (and wasn't there
in the text I typed).  Surely, in this case, the error is in the
rendering of the HTML then - the formatting of the HTML source should
not affect the formatting of the rendered text (except, of course, in a
<pre></pre> tag).

P.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]