I created a form with MS Word. I added single line plain text content controls (text box). When the form is opened with Libre Office, it does not recognize that these text boxes should be single line and allows multiple lines. Libre Office does not trap the carriage returns.
Steps to Reproduce:
1. Use MS Word to create a form with single line plain text content controls
2. Make sure they are single line. Save document.
3. Open document with LibreOffice
4. Type text in the single line controls. Press ENTER to type a second line.
5. Should not be able to add a second line since it was created as single line.
6. LibreOffice does not trap carriage returns.
Multiple lines can be created in a single line text control.
Single line only
User Profile Reset: No
[Information automatically included from LibreOffice]
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes
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.