Skip to content
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

Using the Add-on 0.9.1 with Thunderbird 102.0b7 - Hitting enter once when composing an email has the effect of hitting enter twice #129

Open
dbonner opened this issue Jun 19, 2022 · 8 comments
Assignees
Labels
Thunderbird Thunderbird-only bugs

Comments

@dbonner
Copy link

dbonner commented Jun 19, 2022

How I tested this:

I tried this on Windows and also on Linux (Thunderbird for aarch64 built from source)

  1. Run Thunderbird without the Awesome Emoji Picker add-on installed.
  2. Make sure there is no tick in the setting: "Use Paragraph format instead of Body Text by default". (This is under Settings->Composition->HTML Style)
  3. Hit "Write" to compose a new email.
  4. Type "This is the first line".
  5. Hit Enter once.
  6. Type "This is the next line".

The result is as you would expect (i.e. hitting enter just causes you to go to the next line immediately below):
This is the first line
This is the next line

  1. Discard the previous email that you were composing.
  2. Install the Awesome Emoji Picker addon (version 0.9.1)
  3. Hit "Write" to compose a new email.
  4. Type "This is an example".
  5. Hit Enter once.
  6. Type "This is the next line".

Every time you hit the Enter key, Thunderbird will issue 2 x Enter commands, i.e. there is a blank line between the first line you entered and the next line like this:
This is the first line

This is the next line
You can hit the backspace key after hitting enter to eliminate the extra line between the sentences. You can also use Shift+Enter to cause there to be no space between lines.

  1. Uninstall the Awesome Emoji Picker Addon. Then Thunderbird returns to normal. Hitting enter works as it should.
@tdulcet
Copy link
Contributor

tdulcet commented Jun 19, 2022

Thanks for the bug report and for testing the add-on in Thunderbird 102 beta! Also, thanks for the detailed steps to reproduce, that is very helpful. I am able to confirm this issue when disabling the "Use Paragraph format instead of Body Text by default" option in Thunderbird 102 beta. However, I am not able to reproduce it in Thunderbird 91, so it is most likely a regression in Thunderbird. You could use mozregression to find the regressing commit and then report the bug to them on BMO.

Note that this is due to the experimental Emoji autocorrect feature, which is likely going to be either disabled by default or removed in the next version of the add-on, while it is further tested (see #93 (comment)). Hopefully this will be in time for the official release of Thunderbird 102.

@rugk rugk added the Thunderbird Thunderbird-only bugs label Jun 26, 2022
@nichu42
Copy link

nichu42 commented Jun 29, 2022

I have the same problem with Thunderbird 102 release.
Paragraph format is not checked. The problem disappears when disabling the emoji picker plug-in.
It also happens if Emoji auto-correction is disabled.

@nichu42
Copy link

nichu42 commented Jun 29, 2022

@tdulcet
Copy link
Contributor

tdulcet commented Jun 29, 2022

@nichu42 - Thanks for the additional information and for filing that bug report on BMO. The add-on has not changed, so something was obviously broken between TB 91 and 102. As I said above, it would be very helpful if someone could use mozregression to find the regressing commit. TB 102 was just released today, so it will likely be another month or two at least before the automatic upgrade is enabled for users.

It is currently not possible to completely disable the Emoji autocorrect feature, but our other add-on has a similar Unicode autocorrect feature and a few weeks ago I submitted a PR to disable that by default (see rugk/unicodify#72). It is currently just waiting on @rugk's review and then we would be able to make that same change here...

@tdulcet
Copy link
Contributor

tdulcet commented Jul 24, 2022

I just published v0.9.2 on ATN which disables the emoij autocorrect feature by default.

@rugk - This issue can now be closed. For reference, the changes are temporally in this branch here while I wait for you to finish reviewing my existing PRs.

@dbonner and @nichu42 - You should automatically get the update within 24 hours or you can force it from the Add-ons manager.

@rugk
Copy link
Owner

rugk commented Jul 27, 2022

This issue can now be closed. For reference, the changes are temporally in this branch here while I wait for you to finish reviewing my existing PRs.

Hm what? May you just rebase it on master or so? Or which PR still needs my eyes?

@tdulcet
Copy link
Contributor

tdulcet commented Jul 28, 2022

Hm what? May you just rebase it on master or so? Or which PR still needs my eyes?

Around a quarter of the changes in that branch were in #126 and the PRs with the rest of the improvements are still waiting on #127, as they depend on changes made there... I will rebase #93 after rugk/unicodify#72 is approved.

@tdulcet
Copy link
Contributor

tdulcet commented Oct 12, 2022

For anyone following this issue, I just noticed that the regression seems to have been fixed in Bug 1778091 which landed in Thunderbird 104. Unfortunately, they did not uplift that fix to Firefox/Thunderbird 102 ESR, so anyone wanting to use the Emoji autocorrect feature with that affected "Body text" format option would need to use either Thunderbird Beta or Daily until Thunderbird 115 ESR is released next year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Thunderbird Thunderbird-only bugs
Projects
None yet
Development

No branches or pull requests

4 participants