
Tampoco estoy seguro si estoy haciendo algo mal o es un error.
Quiero usar el comando bash odt2txt para convertir un archivo odt, creado con Libreoffice Writer, en un archivo de texto. Sin embargo, los saltos de línea no parecen manejarse correctamente. Cada salto de línea se convierte en dos saltos de línea, varios saltos de línea también se convierten en dos saltos de línea.
Si yo, por ejemplo, guardo esto
This is a test
one line break before this
two line breaks before this
and three line breaks before this
en test.odt con LO Writer, y luego haga
odt2txt test.odt
yo obtengo
This is a test
one line break before this
two line breaks before this
and three line breaks before this
Usar cualquiera de las opciones tampoco me ha ayudado.
No encuentro nada sobre esto en Google, así que me pregunto si soy el único que tiene este problema.
Actualización: salida de cat -vet output.txt, como se solicita en el comentario
$
This is a test$
$
one line break before this$
$
two line breaks before this$
$
and three line breaks before this$
$