From b4019473ab212337fd0b5ae1178de9765b8dfeb3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 29 Apr 2019 12:30:52 +1000 Subject: [PATCH] fix formatting being lost in inter-field pasting on macOS ownsClipboard() always returns false on macOS regression introduced in PR 274 --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index deb0b85ed..2c6dafee0 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -991,7 +991,7 @@ class EditorWebView(AnkiWebView): # add a comment in the clipboard html so we can tell text is copied # from us and doesn't need to be stripped clip = self.editor.mw.app.clipboard() - if not clip.ownsClipboard(): + if not isMac and not clip.ownsClipboard(): return mime = clip.mimeData() if not mime.hasHtml():