diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index 20319cc3c..ae8951b88 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -790,10 +790,13 @@ class CardLayout(QDialog): def _addField(self, field: str, font: str, size: int) -> None: text = self.tform.edit_area.toPlainText() - text += "\n
{{%s}}
\n" % ( - font, - size, - field, + text += ( + "\n
{{%s}}
\n" + % ( + font, + size, + field, + ) ) self.tform.edit_area.setPlainText(text) self.change_tracker.mark_basic()