
我也不確定我是否做錯了什麼或它是一個錯誤。
我想使用 bash 命令 odt2txt 將使用 Libreoffice Writer 製作的 odt 檔案轉換為文字檔案。但是,換行符號似乎沒有正確處理。每個單一換行符都會轉換為兩個換行符,多個換行符也會轉換為兩個換行符。
例如,如果我儲存這個
This is a test
one line break before this
two line breaks before this
and three line breaks before this
使用 LO Writer 寫入 test.odt,然後執行
odt2txt test.odt
我明白了
This is a test
one line break before this
two line breaks before this
and three line breaks before this
使用任何選項也沒有幫助我。
我在谷歌上沒有找到任何關於這個問題的信息,所以我想知道我是否是唯一遇到這個問題的人。
更新:cat -vet output.txt 的輸出,如評論中所要求的
$
This is a test$
$
one line break before this$
$
two line breaks before this$
$
and three line breaks before this$
$