From 73430d966fb0bd9e16608b1459f1070d7e645cd9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 28 Mar 2021 19:41:15 +1000 Subject: [PATCH] fix 'strip formatting' option being inverted --- qt/aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index dcac1398c..69e379455 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -1154,7 +1154,7 @@ class EditorWebView(AnkiWebView): ) if KeyboardModifiersPressed().shift: strip_html = not strip_html - return strip_html + return not strip_html def _onPaste(self, mode: QClipboard.Mode) -> None: extended = self._wantsExtendedPaste()