mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Remove extra newlines in printers added from account message
Since \n are now replaced by <br>, the \n should be removed from this specific message.
Required after the changes in efaad4f6c8
This commit is contained in:
parent
c810ae97a7
commit
18f3d187d5
1 changed files with 3 additions and 3 deletions
|
@ -239,13 +239,13 @@ class CloudOutputDeviceManager:
|
|||
num_hidden = len(new_devices) - max_disp_devices + 1
|
||||
device_name_list = ["<li>{} ({})</li>".format(device.name, device.printerTypeName) for device in new_devices[0:num_hidden]]
|
||||
device_name_list.append(self.I18N_CATALOG.i18nc("info:hidden list items", "<li>... and {} others</li>", num_hidden))
|
||||
device_names = "\n".join(device_name_list)
|
||||
device_names = "".join(device_name_list)
|
||||
else:
|
||||
device_names = "\n".join(["<li>{} ({})</li>".format(device.name, device.printerTypeName) for device in new_devices])
|
||||
device_names = "".join(["<li>{} ({})</li>".format(device.name, device.printerTypeName) for device in new_devices])
|
||||
|
||||
message_text = self.I18N_CATALOG.i18nc(
|
||||
"info:status",
|
||||
"Cloud printers added from your account:\n<ul>{}</ul>",
|
||||
"Cloud printers added from your account:<ul>{}</ul>",
|
||||
device_names
|
||||
)
|
||||
message.setText(message_text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue