Bug 162931 - Text pasted into LibreOffice Writer truncated at first <wbr> tag
Summary: Text pasted into LibreOffice Writer truncated at first <wbr> tag
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0 all versions
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Word-Line-Break
  Show dependency treegraph
 
Reported: 2024-09-12 15:39 UTC by Brian Cohen
Modified: 2024-09-16 15:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (120.35 KB, image/png)
2024-09-12 16:37 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Cohen 2024-09-12 15:39:12 UTC
Description:
Note: may be duplicate of dormant bug #98561

Text including <wbr> tags is not pasted correctly into LibreOffice Writer as it is truncated at the first <wbr> tag.



Steps to Reproduce:
1. Go to https://www.w3schools.com/TAgs/tryit.asp?filename=tryhtml5_wbr
2. On the right panel select and copy the text beginning "veryveryvery.."
3. Open LibreOffice Writer and paste into a new document

Actual Results:
Only the pasted text preceding the first <wbr> tag is pasted 

Expected Results:
All of the selected text should be pasted.


Reproducible: Always


User Profile Reset: No

Additional Info:
Note: Bug affects default paste formatted text only & does not affect paste special unformatted text.
Comment 1 m_a_riosv 2024-09-12 16:37:45 UTC
Created attachment 196401 [details]
Screenshot

What the issue is?
Comment 2 Xisco Faulí 2024-09-12 18:15:11 UTC
Reproduced in

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 898d5d470e24a55556f2fb244fec24df33ba8855
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded

and

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b418f3d8d332276e6990cf7532a8f66aeb1d2f6c
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 3 Brian Cohen 2024-09-13 08:16:59 UTC
@ m_a_riosv

"What the issue is?"

The issue is the behavior is totally unexpected. LibreOffice Writer (LOW) should ignore the <wbr> tags and paste all the text (as does MS Word, for example).

"The <wbr> (Word Break Opportunity) tag specifies where in a text it would be ok to add a line-break." - [source](https://www.w3schools.com/TAgs/tag_wbr.asp)

Even if LOW were to insert line-breaks at <wbr> tags (I don't see why it should, as this is an HTML formatting aid for wrapping text) it should still paste all the text, not ignore all text after the first <wbr> tag.
Comment 4 Xisco Faulí 2024-09-13 12:23:25 UTC
Also reproduced in

Version: 6.4.0.0.alpha1+
Build ID: 9bc848cf0d301aa57eabcffa101a1cf87bad6470
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3; 
Locale: es-ES (es_ES.UTF-8); UI-Language: en-US
Calc: threaded