diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index 943aae09c..32e8ef47a 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -940,7 +940,7 @@ void ElementScene::slot_editAuthorInformations() { // lance le dialogue if (dialog_author.exec() == QDialog::Accepted && !is_read_only) { - QString new_infos = text_field -> toPlainText(); + QString new_infos = text_field -> toPlainText().remove(QChar(13)); // CR-less text if (new_infos != informations()) { undoStack().push(new ChangeInformationsCommand(this, informations(), new_infos)); } diff --git a/sources/titleblock/qettemplateeditor.cpp b/sources/titleblock/qettemplateeditor.cpp index 5bddaa157..79db84fbd 100644 --- a/sources/titleblock/qettemplateeditor.cpp +++ b/sources/titleblock/qettemplateeditor.cpp @@ -875,7 +875,7 @@ void QETTitleBlockTemplateEditor::editTemplateInformation() { // run the dialog if (dialog_author.exec() == QDialog::Accepted && !read_only_) { - QString new_info = text_field -> toPlainText(); + QString new_info = text_field -> toPlainText().remove(QChar(13)); // CR-less text if (new_info != tb_template_ -> information()) { pushUndoCommand(new ChangeTemplateInformationsCommand(tb_template_, tb_template_ -> information(), new_info)); }