Skip to content

Commit 10c600c

Browse files
authored
SG-27509 Set the Text Format so Qt will strip whitespace even if no HTML tags (#201)
1 parent 3be2bd7 commit 10c600c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/tk_multi_publish2/base_hooks/publish_plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def create_settings_widget(self, parent, items=None):
428428
"""
429429

430430
# defer Qt-related imports
431-
from sgtk.platform.qt import QtGui
431+
from sgtk.platform.qt import QtCore, QtGui
432432

433433
# create a group box to display the description
434434
description_group_box = QtGui.QGroupBox(parent)
@@ -440,6 +440,7 @@ def create_settings_widget(self, parent, items=None):
440440
description_label = QtGui.QLabel(self.description)
441441
description_label.setWordWrap(True)
442442
description_label.setOpenExternalLinks(True)
443+
description_label.setTextFormat(QtCore.Qt.TextFormat.RichText)
443444

444445
# create the layout to use within the group box
445446
description_layout = QtGui.QVBoxLayout()

0 commit comments

Comments
 (0)