Migaku-Kanji-Addon icon indicating copy to clipboard operation
Migaku-Kanji-Addon copied to clipboard

[BUG] "Set custom story" pop-up dialog swallows spaces after periods

Open fw42 opened this issue 3 years ago • 1 comments

Not sure if this is even a bug in this add-on or in Anki or in Qt or if it's specific to Mac OS X or not. Maybe someone can try to reproduce?

Describe the bug When entering multiple sentences in the "Set custom story" pop-up dialog, the space (" ") after the period (".") at the end of the first sentence is being swallowed while typing. If you type two spaces, only one appears.

To Reproduce Steps to reproduce the behavior:

  1. Go to the back of any card.
  2. Click on 'Set custom story'
  3. Type "Hello. Test."

Expected behavior Input text field should display "Hello. Test.". Instead, it shows "Hello.Test." (missing space between "." and "T").

Desktop:

  • OS and Version: Mac OS X 12.0.1
  • Anki Version Version 2.1.35 (84dcaa86)
  • Python 3.8.0
  • Qt 5.14.2
  • PyQt 5.14.2

Additional context Looks possibly related to https://bugreports.qt.io/browse/QTBUG-86995 and https://bugreports.qt.io/browse/QTBUG-86496.

Screenshots Screenshot 2022-01-12 at 13 59 09

fw42 avatar Jan 12 '22 13:01 fw42

Thank you for reporting this!

saxoncameron avatar Jan 14 '22 08:01 saxoncameron