Anki/qt
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
..
aqt revert to the old wrap() behaviour 2020-01-16 10:33:36 +10:00
aqt_data/web tweaking the folder names again 2020-01-03 07:48:38 +10:00
designer Small fixes and tweaks to "Tag Modified": 2020-01-15 10:46:05 +02:00
i18n update translations 2020-01-10 08:21:52 +10:00
tests switch from nose2 to pytest 2020-01-03 08:52:10 +10:00
tools more tweaks for readability/consistency 2020-01-15 17:45:35 +10:00
ts revert to the old wrap() behaviour 2020-01-16 10:33:36 +10:00
.gitignore merge i18n into qt/ 2020-01-03 07:59:00 +10:00
.isort.cfg make sure isort preserves ordering if anki installed into python env 2020-01-03 13:34:51 +10:00
.pylintrc tweaking the folder names again 2020-01-03 07:48:38 +10:00
anki.1 tweaking the folder names again 2020-01-03 07:48:38 +10:00
anki.desktop Add .ankiaddon mime-type on Linux and register Anki as its handler 2020-01-03 17:58:11 +01:00
anki.png tweaking the folder names again 2020-01-03 07:48:38 +10:00
anki.xml Add .ankiaddon mime-type on Linux and register Anki as its handler 2020-01-03 17:58:11 +01:00
anki.xpm tweaking the folder names again 2020-01-03 07:48:38 +10:00
Makefile clean stale build folders before build 2020-01-15 10:07:39 +10:00
mypy.ini bump minimum python version from 3.6 to 3.7 2020-01-07 18:34:36 +10:00
pkgkey.asc tweaking the folder names again 2020-01-03 07:48:38 +10:00
requirements.dev tweaking the folder names again 2020-01-03 07:48:38 +10:00
requirements.qt tweaking the folder names again 2020-01-03 07:48:38 +10:00
runanki tweaking the folder names again 2020-01-03 07:48:38 +10:00
setup.py include py.typed for mypy 2020-01-13 21:18:03 +10:00