Anki-Night-Mode
Anki-Night-Mode copied to clipboard
The addon applies a white background to text using a <span> tag, making the text unreadable.
Problem description
I use this add-on in conjunction with the Mini Format Pack. Using key combos and buttons for the Mini Format Pack (WHILE using Night Mode) in the editor wraps the text in a <span style="background-color: rgb(255,255,255)> tag like so: I believe this issue has been reported before, but was assumed solved way back in 2017. I've encountered the same behavior with more than one Mini Format Pack options, including: Unordered Lists, Text Indent/Outdent and Text Alignment (left/right/center).
Checklist
Please put x inside brackets if following sentences apply to you:
- [x] I verified that I use the latest add-on version,
- [x] I verified that I use the latest Anki version,
- [x] I tried to disable other add-ons to find the culprit,
- [x] I checked if anyone reported this problem before, as well as Known issues section on add-ons page,
- [x] My issue is solved when holding shift while starting Anki.
Information about your Anki Setup
Please open Anki, go to Help → About, look-up two lines, starting with Version:
and Qt
and copy-paste them below:
Version: 2.1.8 (71e0c880)
Qt: 5.12.0 PyQt 5.11.3
Please got to Night Mode → About now and copy-paste the first line from the pop-up window below:
Night Mode 2.2.3
Please fill in your OS details (Linux/Mac/Windows):
OS: Windows
If you have a compatibility problem with a specific add-on or add-ons, please paste the add-on page links below:
Backtrace (if any)
If you had an error which resulted in producing exception with a backtrace, please paste the backtrace below:
[paste your backtrace in here if you got any; otherwise feel free to remove this part]
Well, this was solved by workaround that removes the span after detecting some common operations (typing, cutting, pasting). It seems that to make it compatible with the other addon, it should also try to detect the add-ons actions. Will look into that in late March.
Thanks for reporting!