diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp index 7cedee508e..a9a9ef495b 100644 --- a/src/frontends/qt/GuiDocument.cpp +++ b/src/frontends/qt/GuiDocument.cpp @@ -4630,7 +4630,7 @@ void GuiDocument::paramsToDialog() toqstr(pdf.quoted_options)); pdfSupportModule->metadataTE->setPlainText( - toqstr(bp_.document_metadata)); + toqstr(rtrim(bp_.document_metadata, "\n"))); // change tracking changesModule->trackChangesCB->setChecked(bp_.track_changes);