wasavi icon indicating copy to clipboard operation
wasavi copied to clipboard

Gmail new/blank lines bug

Open prestancedesign opened this issue 8 years ago • 12 comments

Hi,

Since the last version, all empty lines are removed from Gmail when saving. It seems like this issue #117. I have rolled back with previous version of Wasavi and all is good now.

Best regards.

prestancedesign avatar May 04 '16 08:05 prestancedesign

Yup, I'm seeing this as well.

yankcrime avatar Jun 03 '16 15:06 yankcrime

I close this issue because it's duplicated from #31.

prestancedesign avatar Jun 03 '16 19:06 prestancedesign

I think a new issue for this was appropriate given that it appears to be a regression. As it stands right now there's two issues but they're both closed so I'm not sure they'll receive any attention.

yankcrime avatar Jun 08 '16 10:06 yankcrime

You're right @yankcrime, I reopen this issue.

I have captured the HTML of my message both before and after editing/saving with wasavi. Maybe this can help to debug. We can see a br tag inside a div has been removed.

Before :

<div id=":93" class="Am aO9 Al editable LW-avf" hidefocus="true" aria-label="Corps du message" g_editable="true" role="textbox" contenteditable="true" tabindex="1" style="direction: ltr; min-height: 85px;">This is the first line.<div><br></div><div>This is the second line.</div></div>

After :

<div id=":93" class="Am aO9 Al editable LW-avf" hidefocus="true" aria-label="Corps du message" g_editable="true" role="textbox" contenteditable="true" tabindex="1" style="direction: ltr; min-height: 85px;"><div>This is the first line.</div>
<div>This is the second line.</div>
</div>

prestancedesign avatar Jun 08 '16 14:06 prestancedesign

Yes, if I put blank lines between paragraphs they disappear on :wq

Rick

RichardDooling avatar Aug 09 '16 12:08 RichardDooling

Same problem here. Is someone looking at this problem?

igavronski avatar Nov 14 '16 10:11 igavronski

I downgraded and blocked to the version 0.6.628 my Chrome extension until a fix will be released.

When I have a little bit of time, I would like to compare the versions to determine the cause of the problem. I guess it's the new feature "content editable element to markdown" that cause this issue. https://github.com/akahuku/wasavi/wiki/Editing-%22content-edltable%22-element

prestancedesign avatar Nov 14 '16 13:11 prestancedesign

Sorry, but I don't know and I couldn't find how to downgrade an extension. Could you please provide (a link for) instructions?

igavronski avatar Nov 15 '16 17:11 igavronski

By the way, I followed the link to the wiki you provided, some trial and error, and got it working on Gmail by setting set writeas=textAndBreak in the exrc.

igavronski avatar Nov 15 '16 17:11 igavronski

Are you on Chrome ? If yes, you can download the version 0.6.628 from this link and follow method 2 from here to manually install extension.

prestancedesign avatar Nov 15 '16 17:11 prestancedesign

Oh I just try and it works. I had missed these options ! Thx @igavronski. I continue to testing tomorrow and if it works without problem, I'll close this issue.

prestancedesign avatar Nov 15 '16 17:11 prestancedesign

I was curious if there has been any progress on this? All blank lines are being deleted by wasavi in Gmail in version 0.7.737. Putting set writeas=textAndBreak does not make any difference for me. Thanks!

ardent246 avatar Dec 02 '19 00:12 ardent246