-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve HTML-to-text conversion #260
Comments
First, the empty lines getting added: #236. You're using a custom font in Gmail, right? Second, the paragraph break in the middle: super weird. Does that happen to you often? Can you reliably reproduce it? If so... Can you copy the HTML of the email before rendering (or after rendering and unrendering, if you need to check that it's broken)? Here's a GIF showing how: |
I have it set to Georgia in Gmail settings. I have tried to change that back to just Sans Serif but that does not seem to help. I am using a different font for the same reasons this guy does: |
The line break in the middle of a paragraph is something I have seen multiple times already. I just copy/pasted the from the email I sent into a new message. This is the HTML before hitting C-A-m:
And after:
|
I see the problem. Here is your before-rendering HTML, pretty-printed: <div id=":291" class="Am Al editable LW-avf" hidefocus="true" aria-label="Message Body"
g_editable="true" role="textbox" contenteditable="true" tabindex="1"
itacorner="6,7:1,1,0,0" style="direction: ltr; min-height: 343px;">
<div class="gmail_default" style="font-family: georgia, serif;">
<span style="font-size: 12.8000001907349px;">
Hello.
</span>
</div>
<div class="gmail_default" style="font-family: georgia, serif;">
<p style="font-family: arial, sans-serif; font-size: 12.8000001907349px;"></p>
<p dir="ltr" style="font-family: arial, sans-serif; font-size: 12.8000001907349px;"></p>
<div class="gmail_default" style="font-size: 12.8000001907349px; display: inline;">
I am still having issues with the navigation when it thinks my position is
in a tunnel. When I get out of the tunnel anywhere else than the navigation
directs me to, like when the tunnel has a fork and the navigation directs
me one way and I go another way,
</div>
<div class="gmail_default"
style="font-size: 12.8000001907349px; display: inline;">
</div>
<font face="georgia, serif" style="font-size: 12.8000001907349px;"></font>
<div class="gmail_default"
style="font-family: arial, sans-serif; font-size: 12.8000001907349px; display: inline;">
<font face="georgia, serif">
it seems to keep counting impulses as if I were still in the tunnel;
whenever I move, the navigation moves my position _in the tunnel_,
despite me being out of the tunnel for a long time. It does not reconsider
my position, ignoring the GPS position effectively, until it does counts
enough impulses to get away from the tunnel. Then suddenly it stops
ignoring the GPS position and jumps 500 meters or 1 km towards my actual
position.
</font>
</div>
<p dir="ltr" style="font-family: arial, sans-serif; font-size: 12.8000001907349px;">
-- VZ
</p>
</div>
<div>
<br>
</div>
</div> See all the This problem is, again, probably related to your use of a custom font. But the real problem is the HTML-to-text processing. I'm going to turn this issue into a general "make HTML-to-text better" catch-all (so I'm renaming it). #10 is closely related, and here are some old notes about it. For now I guess the workarounds are:
Yeah, weak. |
I am seeing conversion artefacts. I have recorded a video of this: https://www.youtube.com/watch?v=bpwFqdszDUI
As you can see from the video, there seem to be two issues. First is that conversion round trip seems to add empty lines at the top of the text. Second, there is an unwanted paragraph break inserted in the middle of the text.
The version I am using appears to be v2.11.4.
The text was updated successfully, but these errors were encountered: