Bug 159134

Summary: linebreak lbr missing feature
Product: [Applications] kate Reporter: janow49420
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: peppe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: It is fixed

Description janow49420 2008-03-11 13:03:08 UTC
Version:           4.0.2 (using KDE 4.0.2)
Installed from:    Gentoo Packages

In vim when you :set lbr it causes words to not break mid-sentence. Kate in KDE 3.5 used to do this automatically if dynamic word wrapping was enabled, now in KDE4 it breaks words mid sentence which is very annoying if your not using kate/kwrite for coding.
Comment 1 Anne-Marie Mahfouf 2008-03-11 13:09:01 UTC
In KDE 3.5 KWrite 4.5.7 with default settings, dinamic wordwrap is enabled but words are not cut. 
In KDE 4.1 (svn trunk) KWrite 4.00.65 (why is it lower than in KDE 3???) Dynamic word wrap is enabled per default and cut words. 
We would like to get the KDE 3.5 behaviour per default.
Comment 2 Christophe Marin 2008-06-09 22:26:08 UTC
*** Bug 160321 has been marked as a duplicate of this bug. ***
Comment 3 janow49420 2008-06-27 11:42:00 UTC
This appears to be fixed in 4.1.0 Beta 2 (4.0.83)
Comment 4 peppelorum 2008-07-03 19:39:46 UTC
This appears NOT to be fixed in 4.0.83 using Kate 3.0.83, using Ubuntu paackages.
Comment 5 janow49420 2008-07-04 10:13:15 UTC
It IS fixed. I double checked in the KDE4Live disc, which is running 4.0.84. (The gentoo packages from #gentoo-kde4-live which were 4.0.83 also were fixed. Here's a screenshot to prove it. I think we are at 4.0.85 now.
Comment 6 janow49420 2008-07-04 10:14:04 UTC
Created attachment 25827 [details]
It is fixed

I cut out the rest of the desktop, so that I could reduce the file size.
Comment 7 Dominik Haumann 2008-07-04 23:05:18 UTC
SVN commit 821281 by rodda:

Make katepart dynamically wrap at word boundaries, if possible.

IIRC, this was disabled due to a bug in Qt which appears to have been fixed since qt 4.{0,1} against which it was written.

bug:159134


 M  +1 -1      katerenderer.cpp  


trunk/KDE/kdelibs/kate/render/katerenderer.cpp #821280:821281
@@ -755,7 +755,7 @@
   QTextOption opt;
   opt.setFlags(QTextOption::IncludeTrailingSpaces);
   opt.setTabStop(m_tabWidth * config()->fontMetrics().width(spaceChar));
-  opt.setWrapMode(QTextOption::WrapAnywhere);//QTextOption::WrapAtWordBoundaryOrAnywhere);
+  opt.setWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere);