Fix double spaces in message (#5190)

This commit is contained in:
Roy Nieterau 2023-08-29 16:45:09 +02:00 committed by GitHub
parent 6014cc6549
commit c157f74b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,16 +25,16 @@ class ValidateVersion(pyblish.api.InstancePlugin):
# TODO: Remove full non-html version upon drop of old publisher # TODO: Remove full non-html version upon drop of old publisher
msg = ( msg = (
"Version '{0}' from instance '{1}' that you are " "Version '{0}' from instance '{1}' that you are "
" trying to publish is lower or equal to an existing version " "trying to publish is lower or equal to an existing version "
" in the database. Version in database: '{2}'." "in the database. Version in database: '{2}'."
"Please version up your workfile to a higher version number " "Please version up your workfile to a higher version number "
"than: '{2}'." "than: '{2}'."
).format(version, instance.data["name"], latest_version) ).format(version, instance.data["name"], latest_version)
msg_html = ( msg_html = (
"Version <b>{0}</b> from instance <b>{1}</b> that you are " "Version <b>{0}</b> from instance <b>{1}</b> that you are "
" trying to publish is lower or equal to an existing version " "trying to publish is lower or equal to an existing version "
" in the database. Version in database: <b>{2}</b>.<br><br>" "in the database. Version in database: <b>{2}</b>.<br><br>"
"Please version up your workfile to a higher version number " "Please version up your workfile to a higher version number "
"than: <b>{2}</b>." "than: <b>{2}</b>."
).format(version, instance.data["name"], latest_version) ).format(version, instance.data["name"], latest_version)