Version: (using KDE Devel) Installed from: Compiled sources Load the following file into a big konqueror window. Then slowly(!) resize the window, i.e. make it less wide. Sometimes khtml adds line breaks inside the word "ABCDEFGH", while e.g. mozilla only adds line breaks at whitespace. <html> <head></head> <body leftmargin="380" marginwidth="380"> <p>ABCDEFGH ABC</p> </body>
only affects the first line, seems this is what the comment "### not 100% correct for first-line" refers to in RenderText::calcMinMaxWidth()
I observed that my khtml (3.1) breaks after the </a> in <a href="blah">blah</a>, (note no whitespace before the comma).
strange bug :)
I can't confirm with HEAD
Can't be reproduced. However, *this* can be reproduced: data:text/html,<body leftmargin="380" marginwidth="380"><p>AB<b>CD</b>EFGH ABC</p>
can still be reproduced on svn trunk r793457 using the comment #5.
Created attachment 24217 [details] testcase testcase that can still be reproduced.
Still valid here using: Qt: 4.4.3 + qt-copy-patches-889120 KDE: 4.1.87 (KDE 4.1.87 (KDE 4.2 >= 20090101)) kdelibs svn rev. 905636 / kdebase svn rev. 905636 on ArchLinux x86_64 - Kernel 2.6.27.10
SVN commit 948015 by ggarand: .fix vintage line-breaking bug surely I must be the first guy in a decade to really understand that silly code (whee, i'm so proud). Let's document, before this knowledge is lost again. BUG: 49441 M +4 -16 bidi.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=948015
SVN commit 948353 by ggarand: automatically merged revision 948015: .fix vintage line-breaking bug surely I must be the first guy in a decade to really understand that silly code (whee, i'm so proud). Let's document, before this knowledge is lost again. BUG: 49441 M +4 -16 bidi.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=948353