mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-28 22:54:47 -05:00
CLI: Fix XML encoding when export database
Add write function to TextStream Fix #3900
This commit is contained in:
parent
792c1c94f7
commit
06e0f38523
3 changed files with 12 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ int Export::executeWithDatabase(QSharedPointer<Database> database, QSharedPointe
|
|||
errorTextStream << QObject::tr("Unable to export database to XML: %1").arg(errorMessage) << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
outputTextStream << xmlData.constData() << endl;
|
||||
outputTextStream.write(xmlData.constData());
|
||||
} else if (format.startsWith(QStringLiteral("csv"), Qt::CaseInsensitive)) {
|
||||
CsvExporter csvExporter;
|
||||
outputTextStream << csvExporter.exportDatabase(database);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue