Apache OpenOffice (AOO) Bugzilla – Issue 23216
Text Box Control breaks incorrectly when spaces entered
Last modified: 2013-08-07 14:38:26 UTC
Hi, Attached is a Writer document which hopefully illustrates the problem. Enter text into a text box. Now go back an insert spaces before the last word. Keep entering spaces. The expected behaviour (as shown in Calc with Automatic Line Break on) would be for the line to fill up with spaces and then spaces to start appearing at the start of the next line pushing the text to the right. The actual behaviour is the word before the last word is also forced to the next line. Some people would argue that Word processing behaviour where the spaces are ingnored at the end of the line may be correct behavior. I would suggest the Calc behaviour is more appropriate, as Text Box Controls related to data and spaces are an important aspect of data. Attached is a Writer document with similar comments and showing the break in text occuring. To duplicate the example shown, copy and paste the first paragraph into the text box and repeat the instructions stated in the first paragraph. Hope this helps Kelvin
Created attachment 11767 [details] Entering spaces in Text Box Control causes incorrect line breaking
Can confirm this with OOo 1.1.0 on Win98. In the bugdoc, as downloaded, place the cursor into the textbox, just in front of the second line before the word "then". Then press the spacebar once, and the unexpected line break within the first(!) line occurs.
HI->FS: The Textbox is a control.
FS->MT: and the wrapping is done in the MultiLineEdit class in svtools ...
TextEngine...
tl now...