https://bugs.documentfoundation.org/show_bug.cgi?id=172707
Bug ID: 172707
Summary: Writer: Pasting plain text containing words with two
underscores converts line breaks to spaces
Product: LibreOffice
Version: 26.2.4.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
Additional notes:
- Ctrl+Shift+V → Unformatted Text works correctly.
- Apache OpenOffice preserves the line breaks.
- Windows Notepad preserves the line breaks.
- Clipboard contains only CF_TEXT, CF_OEMTEXT, CF_UNICODETEXT and CF_LOCALE.
- The problem appears when the pasted text contains words with two underscores,
e.g.:
aa_bb_cc
aa_11_a
abc_def_ghi
aut_dielce_status
aut_dielce_status_vyroby
Steps to Reproduce:
1. Open Notepad.
2. Type this text:
aaaaa
aa_bb_cc
bbbbb
ccccc
3. Select all and copy.
4. Open LibreOffice Writer.
5. Press Ctrl+V.
Actual Results:
Text is pasted into one paragraph/line:
aaaaa aa_bb_cc bbbbb ccccc
The original line breaks are replaced with spaces/non-breaking spaces.
Cursor moves to the next line after paste.
Expected Results:
Text should preserve line breaks exactly as in the clipboard:
aaaaa
aa_bb_cc
bbbbb
ccccc
Reproducible: Always
User Profile Reset: No
Additional Info:
Additional notes:
- Ctrl+Shift+V → Unformatted Text works correctly.
- Apache OpenOffice preserves the line breaks.
- Windows Notepad preserves the line breaks.
- Clipboard contains only CF_TEXT, CF_OEMTEXT, CF_UNICODETEXT and CF_LOCALE.
- The problem appears when the pasted text contains words with two underscores,
e.g.:
aa_bb_cc
aa_11_a
abc_def_ghi
aut_dielce_status
aut_dielce_status_vyroby
--
You are receiving this mail because:
You are the assignee for the bug.