Bug 146323 - LibreOffice Writer should include an option to save as text with line breaks
Summary: LibreOffice Writer should include an option to save as text with line breaks
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86 (IA32) Windows (All)
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LibO-Enhancements
  Show dependency treegraph
 
Reported: 2021-12-20 00:09 UTC by David Wincelberg
Modified: 2023-10-13 05:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Wincelberg 2021-12-20 00:09:00 UTC
Description:
When I save a document in text mode, I sometimes want the line breaks to match those shown in LibreOffice Writer.  An example is a FILE_ID.DIZ file that has line breaks at 45 characters.

Steps to Reproduce:
1. Load a file that you want to save as text with line breaks.
2. Click on File > Save As.
3. Look through list for "Text with Line Breaks (*.txt)".
4. This option is not found.  Choosing "Text (*.txt)" does not put in line breaks.

Actual Results:
Choosing "Text (*.txt)" does not preserve the line breaks.

Expected Results:
It should include the option "Text with Line Breaks (*.txt)".


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.8.1 (x64) / LibreOffice Community
Build ID: e1f30c802c3269a1d052614453f260e49458c82c
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 Hossein 2021-12-20 05:30:38 UTC
It is good to know that LibreOffice currently does break the lines in .txt files on ~10k characters which is filed as bug 70423.
Comment 2 Michael Warner 2021-12-20 17:22:55 UTC
If you insert line breaks manually in Writer and then save as text, are those manual line breaks not saved?
Comment 3 QA Administrators 2022-06-20 03:27:30 UTC Comment hidden (obsolete)
Comment 4 David Wincelberg 2022-06-20 18:42:42 UTC
You can manually insert line breaks and these line breaks would be preserved when the file is saved.  However, putting them into a long paragraph or many paragraphs would be tedious.  It would be nice if LibreOffice Writer had an option to put in these line breaks when the document is saved as text with line breaks.  Another problem with manual line breaks is that you might edit a paragraph and then need to adjust the line breaks.
Comment 5 Michael Warner 2022-06-21 03:09:24 UTC
To me, this seems like a feature that might be nice but would be at a low priority. Even if this enhancement request were confirmed, it may be a long time before someone gets around to it. 

For more immediate results I recommend you use a decent text editor instead of a word processor for this case. For one example, UltraEdit already has this feature. Notepad++ probably does as well, but I don't have it installed at the moment.
Comment 6 Hossein 2022-06-29 23:04:41 UTC
As per Michael's suggestion, setting the status of this issue to NEW, but as a low priority enhancement.
Comment 7 Mike Kaganski 2022-06-30 01:33:26 UTC
I'd say this should be a WONTFIX.

The general rule is "save as close to the document model as possible. This means that adding stuff not present in model is a no-go. After such a save, there's no way to load it as before: manual line breaks would break the text flow in paragraphs.

The generation of such files is in the area of "use an extension".