
또한 내가 뭔가 잘못하고 있는지 아니면 버그인지 확실하지 않습니다.
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
어떤 옵션을 사용해도 나에게 도움이 되지 않았습니다.
Google에서 이에 대한 내용을 찾을 수 없으므로 이 문제가 저에게만 나타나는지 궁금합니다.
업데이트: 주석에서 요청한 대로 cat -vet output.txt의 출력
$
This is a test$
$
one line break before this$
$
two line breaks before this$
$
and three line breaks before this$
$