Issue 23216

Summary: Text Box Control breaks incorrectly when spaces entered
Product: Writer Reporter: kelvine <kelvineld>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: guido.pinkernell, issues
Version: OOo 1.1Keywords: oooqa
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Entering spaces in Text Box Control causes incorrect line breaking none

Description kelvine 2003-12-04 23:53:49 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
Comment 1 kelvine 2003-12-04 23:55:45 UTC
Created attachment 11767 [details]
Entering spaces in Text Box Control causes incorrect line breaking
Comment 2 guido.pinkernell 2004-02-01 16:37:47 UTC
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.
Comment 3 h.ilter 2004-02-03 10:58:13 UTC
HI->FS: The Textbox is a control.
Comment 4 Frank Schönheit 2004-02-03 13:20:52 UTC
FS->MT: and the wrapping is done in the MultiLineEdit class in svtools ...
Comment 5 malte_timmermann 2004-02-04 09:19:30 UTC
TextEngine...
Comment 6 malte_timmermann 2008-03-18 18:34:20 UTC
tl now...