Bug 93907

Summary: FILEOPEN: TXT File missing paragraphs
Product: LibreOffice Reporter: Frank Zimmerman <fz1844>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jbfaure, miguelangelrv
Priority: medium    
Version: 5.0.1.2 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Text File - Imports with missing paragraphs.
same document with unix line separator (\n)

Description Frank Zimmerman 2015-09-03 22:53:48 UTC
Created attachment 118403 [details]
Text File - Imports with missing paragraphs.

I OCR'd a PDF of an old book, then cleaned it up in EditPad Lite using search/replace and some RegEx.

When I load it into the latest LibreOffice Writer (5.0.1.2), paragraphs are missing, and the Title (right at the top of the file) has some odd characters.

I load the same TXT file into Word 2007 and it's fine.

I suspect this might have to do with misreading the character encoding?

I've attached the file.
Comment 1 Jean-Baptiste Faure 2015-09-06 20:22:02 UTC
Created attachment 118472 [details]
same document with unix line separator (\n)

Here is your text in which I changed the line separator from Mac (\r) to Unix (\n). I did the change with JEdit text editor.
This file is imported with the correct paragraphs in Writer. 

Best regards. JBF
Comment 2 Jean-Baptiste Faure 2015-09-06 20:34:03 UTC
You can open your text file with the correct paragraph breaks:
1/ Menu File > Open
2/ in the file type choose Text - choose encoding
3/ select your file and validate
4/ in the ASCII filter options dialog choose CR for page break
5/ click OK.

Does it works for you?

Best regards. JBF
Comment 3 m_a_riosv 2015-12-26 18:17:57 UTC
I think this is a duplicate, every time a txt file is saved the "Choose Text - choose encoding" must be selected.

Please if you are not agree reopen it.

*** This bug has been marked as a duplicate of bug 38902 ***