Bug 119832

Summary: composer: line wraps too early
Product: [Applications] kmail Reporter: Marcel Martin <mmar>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kollix
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marcel Martin 2006-01-10 00:58:20 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
OS:                Linux

My composer is set to wrap after column 78. Options -> Wordwrap is enabled.

I typed sth. like this:
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu eeeeee
(66 'u', one <space>, six 'e')

It's all in one row since there are only 73 characters so far.

I then added another space, a slash and a few more characters until the line was full. Now suddenly the 'eeeeee' was moved to the second line:

uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu eeeeee /abcde

It seems the "eeeeee /abcd" was treated as one word. The problem only occurs when the first character of the last word is a slash.

Another funny thing to try out: Remove the slash and the 'eeeeee' will move up one row! Put it back in and it moves down again.
Comment 1 Marcel Martin 2006-01-10 01:03:35 UTC
Messed up formatting, sorry: A line break is missing after the second long string of 'u' characters.
Comment 2 Thiago Macieira 2006-01-10 02:14:14 UTC
Must be the anti-URL-wrapping code.
Comment 3 Martin Koller 2009-08-14 22:13:42 UTC
works in 4.3
Comment 4 Marcel Martin 2009-08-14 22:44:48 UTC
True, thanks for checking, I had forgotten about this bug report.