From a20d02f5f0670c32a16d1782173a5bf4027b8609 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Sun, 9 Feb 2025 12:43:35 +0100 Subject: [PATCH] element-editor: remove leading and trailing whitespace from author-info --- sources/editor/elementscene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index 86443a38b..31ab33a75 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -482,7 +482,7 @@ const QDomDocument ElementScene::toXml(bool all_parts) //complementary information about the element QDomElement informations_element = xml_document.createElement("informations"); root.appendChild(informations_element); - informations_element.appendChild(xml_document.createTextNode(m_element_data.m_drawing_information)); + informations_element.appendChild(xml_document.createTextNode(m_element_data.m_drawing_information.trimmed())); QDomElement description = xml_document.createElement("description");