From 18f3d187d5d1bbfece646c444ab3817cef7a758e Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Thu, 18 Jun 2020 14:08:35 +0200 Subject: [PATCH] Remove extra newlines in printers added from account message Since \n are now replaced by
, the \n should be removed from this specific message. Required after the changes in https://github.com/Ultimaker/Uranium/commit/efaad4f6c82e9e06fc1c8c829eea077958db6dbf --- .../src/Cloud/CloudOutputDeviceManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index da200c7fc2..04180e6aec 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -239,13 +239,13 @@ class CloudOutputDeviceManager: num_hidden = len(new_devices) - max_disp_devices + 1 device_name_list = ["
  • {} ({})
  • ".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", "
  • ... and {} others
  • ", num_hidden)) - device_names = "\n".join(device_name_list) + device_names = "".join(device_name_list) else: - device_names = "\n".join(["
  • {} ({})
  • ".format(device.name, device.printerTypeName) for device in new_devices]) + device_names = "".join(["
  • {} ({})
  • ".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", + "Cloud printers added from your account:", device_names ) message.setText(message_text)