
Ich bin auch nicht sicher, ob ich etwas falsch mache oder ob es ein Fehler ist.
Ich möchte mit dem Bash-Befehl odt2txt eine mit Libreoffice Writer erstellte odt-Datei in eine Textdatei umwandeln. Allerdings scheinen die Zeilenumbrüche nicht korrekt verarbeitet zu werden. Jeder einzelne Zeilenumbruch wird in zwei Zeilenumbrüche umgewandelt, mehrere Zeilenumbrüche werden ebenfalls in zwei Zeilenumbrüche umgewandelt.
Wenn ich das zum Beispiel speichere
This is a test
one line break before this
two line breaks before this
and three line breaks before this
in test.odt mit LO Writer, und dann
odt2txt test.odt
Ich bekomme
This is a test
one line break before this
two line breaks before this
and three line breaks before this
Die Verwendung einer der Optionen hat mir auch nicht geholfen.
Bei Google finde ich nichts dazu und frage mich, ob ich der Einzige bin, der dieses Problem hat.
Update: Ausgabe von cat -vet output.txt, wie im Kommentar gefordert
$
This is a test$
$
one line break before this$
$
two line breaks before this$
$
and three line breaks before this$
$