Anki/qt/aqt
Damien Elmes bf93731e49 revert to the old wrap() behaviour
wrap2() was introduced recently to try and resolve an issue where
styling outside of the wrapped section was getting lost. eg,

<b>some [text] etc</b>

When the user created a cloze deletion or added math tags to the [text]
part, the text ended up not being bold - the inner portion is displayed
without styling.

wrap2() used setFormat("inserttext", ...), which did fix that issue
- but it also introduced multiple new issues:

- any HTML inside the selected area, including newlines and images,
was lost
- the unicode entities inserted when creating a cloze deletion in
RTL mode end up inserted as plain text

For now, I'm just going to revert to the old behaviour. If anyone
has a suggestion for an approach that is able to preserve both the
inner formatting and the surrounding formatting, a pull request
or post on the forums would be appreciated!
2020-01-16 10:33:36 +10:00
..
.gitignore add buildhash to rspy and aqt, and check all three modules match 2020-01-03 15:15:18 +10:00
__init__.py if pm.meta() fails, need to unset pm 2020-01-14 14:57:24 +10:00
about.py Small fixes and tweaks to "Tag Modified": 2020-01-15 10:46:05 +02:00
addcards.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
addons.py Use add-on name rather than package name when reporting on conflicts 2020-01-04 04:49:36 +01:00
browser.py fix invalid func name in unfocus hook 2020-01-16 08:53:28 +10:00
clayout.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
customstudy.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
deckbrowser.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
deckchooser.py fix cases where we used the wrong type sig to connect to gui hook 2020-01-16 07:53:12 +10:00
deckconf.py remove dupe line 2020-01-06 20:59:18 +10:00
downloader.py remove _hook/_filter suffix 2020-01-15 16:53:24 +10:00
dyndeckconf.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
editcurrent.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
editor.py revert to the old wrap() behaviour 2020-01-16 10:33:36 +10:00
errors.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
exporting.py remove _hook/_filter suffix 2020-01-15 16:53:24 +10:00
fields.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
gui_hooks.py more tweaks for readability/consistency 2020-01-15 17:45:35 +10:00
importing.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
main.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
mediasrv.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
modelchooser.py fix cases where we used the wrong type sig to connect to gui hook 2020-01-16 07:53:12 +10:00
models.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
mpv.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
overview.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
pinnedmodules.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
preferences.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
profiles.py if profile is corrupt and is reset, need to set default lang again 2020-01-14 15:18:07 +10:00
progress.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
qt.py fix cases where we used the wrong type sig to connect to gui hook 2020-01-16 07:53:12 +10:00
reviewer.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
sound.py remove _hook/_filter suffix 2020-01-15 16:53:24 +10:00
stats.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
studydeck.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
sync.py remove _hook/_filter suffix 2020-01-15 16:53:24 +10:00
tagedit.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
taglimit.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
toolbar.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
update.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
utils.py Fix mypy and black checks 2020-01-03 18:23:28 +01:00
webview.py fix cases where we used the wrong type sig to connect to gui hook 2020-01-16 07:53:12 +10:00
winpaths.py tweaking the folder names again 2020-01-03 07:48:38 +10:00