Bug 93907 - FILEOPEN: TXT File missing paragraphs
Summary: FILEOPEN: TXT File missing paragraphs
Status: RESOLVED DUPLICATE of bug 38902
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 22:53 UTC by Frank Zimmerman
Modified: 2015-12-26 18:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Text File - Imports with missing paragraphs. (825.00 KB, text/plain)
2015-09-03 22:53 UTC, Frank Zimmerman
Details
same document with unix line separator (\n) (825.00 KB, text/plain)
2015-09-06 20:22 UTC, Jean-Baptiste Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***