akahuku / wasavi

wasavi is an extension for Chrome, Firefox, and Opera. wasavi changes a textarea element to virtual vi editor which supports almost all the vi/ex commands.
http://appsweets.net/wasavi/
Other
1.51k stars 66 forks source link

Gmail new/blank lines bug #134

Open prestancedesign opened 8 years ago

prestancedesign commented 8 years ago

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.

yankcrime commented 8 years ago

Yup, I'm seeing this as well.

prestancedesign commented 8 years ago

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

yankcrime commented 8 years ago

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.

prestancedesign commented 8 years ago

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>
RichardDooling commented 8 years ago

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

Rick

igavronski commented 7 years ago

Same problem here. Is someone looking at this problem?

prestancedesign commented 7 years ago

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

igavronski commented 7 years ago

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 commented 7 years ago

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.

prestancedesign commented 7 years ago

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 commented 7 years ago

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.

ardent246 commented 4 years ago

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!