Skip to content

Commit 97018cf

Browse files
committed
[Plugin installer] Remove trailing colon if it's a very end of the message.
1 parent cefae89 commit 97018cf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

python/pyplugin_installer/installer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ def installPlugin(self, key, quiet=False):
366366

367367
if infoString[0]:
368368
level = error and QgsMessageBar.CRITICAL or QgsMessageBar.INFO
369-
msg = "<b>%s:</b>%s" % (infoString[0], infoString[1])
369+
msg = "<b>%s</b>" % infoString[0]
370+
if infoString[1]:
371+
msg += "<b>:</b> %s" % infoString[1]
370372
iface.pluginManagerInterface().pushMessage(msg, level)
371373

372374
# ----------------------------------------- #
@@ -582,5 +584,7 @@ def installFromZipFile(self, filePath):
582584

583585
if infoString[0]:
584586
level = error and QgsMessageBar.CRITICAL or QgsMessageBar.INFO
585-
msg = "<b>%s:</b>%s" % (infoString[0], infoString[1])
587+
msg = "<b>%s</b>" % infoString[0]
588+
if infoString[1]:
589+
msg += "<b>:</b> %s" % infoString[1]
586590
iface.pluginManagerInterface().pushMessage(msg, level)

0 commit comments

Comments
 (0)