| Summary: | Single line plain text content control: LO doesn't prevent CR in multiline=false controls | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Luge <luigi.pradolin> |
| Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | aron.budea, ilmari.lauhakangas, jluth, kelemeng |
| Priority: | medium | ||
| Version: | 7.4.3.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=81507 | ||
| Whiteboard: | runSDT | ||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 113363 | ||
| Attachments: |
Example file from Word 2016
The first control with disabled linebreaks option The second control with enabled linebreaks option |
||
|
Description
Luge
2022-12-30 20:34:31 UTC
Please attach an example document. Set to NEEDINFO. Change back to UNCONFIRMED after you have provided the document. Created attachment 188705 [details]
Example file from Word 2016
Example file with two plain text control. This bug is about the "Allow carriage returns (multiple paragraphs)" property in the Plain text content controls settings dialog.
First has the default value, disabled. In Word, you cannot press Enter inside this and type text into a new line.
Second has it enabled, you can press Enter inside this and start typing into a new line.
Writer does not have this property in the content controls settings dialog, so both controls allow using the line breaks.
Created attachment 188706 [details]
The first control with disabled linebreaks option
Created attachment 188707 [details]
The second control with enabled linebreaks option
while bug 81507 has ensured that multiline is not lost, there is no code that implements allowing/preventing multiline in LO, nor is it yet a content control property in sw/inc/formatcontentcontrol.hxx. multiLine (Allow Soft Line Breaks) Specifies whether soft line breaks can be added to the contents of this structured document tag when this document is modified. This setting shall not affect the ability of the structured document tag to display existing soft line breaks (which shall be preserved) and shall only affect the ability to add line breaks when the document is modified by an application. If this attribute is omitted, then the parent plain text structured document control shall not allow soft line breaks to be added to its contents. |