Bug 80285 - long words dont get wrapped
Summary: long words dont get wrapped
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: Git
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 93475 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-25 02:29 UTC by Alexandre Pereira
Modified: 2016-06-02 19:14 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Pereira 2004-04-25 02:29:56 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Gentoo Packages

long words in khtml dont get wrapped according to the window size.

instead , it creates an horizontal sidebar.

this , in example in kopete ( which uses khtml ) looks very ugly and unefficient.

the best thing would be to wrap the word and not create an horizontal scrollbar
Comment 1 Maksim Orlovich 2004-07-10 22:37:20 UTC
example page? test case?
Comment 2 Alexandre Pereira 2004-07-11 15:45:56 UTC
well , is easy ,... use small kopete chat windows , and just wait for someone to write a very long url or word ...

maybe kopete should wrap the long word , since creating a scroolbar looks kinda ugly and uneffective
Comment 3 Leo Savernik 2005-02-14 00:02:19 UTC
It would suffice if khtml didn't only break lines at spaces, but also on weaker separators like .?!:/\,;#+-=|&

Most overlong urls contain at least one of these.
Comment 4 Leo Savernik 2005-02-14 00:07:40 UTC
*** Bug 93475 has been marked as a duplicate of this bug. ***
Comment 5 Michael Olbrich 2006-01-12 20:15:02 UTC
Here is an example on this website:
http://bugs.kde.org/show_bug.cgi?id=104352

And while bugs.kde.org seems to be able to wrap everything else except the overlong line correctly all other websites I've seen do not.
I mostly come across it when using gmail. Reading a mail while scrolling back an forth for each line is very annoying.
Comment 6 Jim Bowlin 2006-03-27 02:46:05 UTC
This problem drives me nuts.  I have a suggestion that should solve 90% of the
problems, although it will allow users to choose to make khtml non-standard.

The solution is to add an option that will add a space character after every
N non-space characters in the rendered text.  Many blog web sites do this
already but the wrapping is chosen site by site instead of user by user.
For compliance tests and/or purists, just set N to zero and no extra wrapping
will occur.  If you want to get really fancy, set the background to a different
color for this extra added spaces and strip out the extra spaces when the user
tries to copy the text.  But I would be very happy to live with these
imperfections if I could just view pages that have long unbroken strings of
non-space characters.  When a page is 2x or 3x or more wider than the window,
having to horizontal scroll back and forth for each line of text makes the
page virtually un-readable.

I would certainly be willing to give a $100 reward to someone who implements
this feature for Konqueror.  If multiple people contribute, they will have
to split the reward.
Comment 7 Grósz Dániel 2008-08-28 01:40:57 UTC
Qt's QTextEdit and word processors like OOo Writer normally do word wrapping between words but if a word is longer than the width of the widget/page, they break the word. This (optional, non standard) mode would be nice to be implemented in KHTML (possibly with markers where a word continues in the next line). I think this is better than the spaces at fixed positions because the number of characters that wit in the page width depend heavily on the font size, window width and web page layout.
Comment 8 Myriam Schweingruber 2012-06-20 09:02:44 UTC
Is this still an issue on Konqueror 4.8.4 or later?
Comment 9 Christoph Feck 2012-06-20 10:26:08 UTC
Yes.
Comment 10 Alexandre Pereira 2016-06-02 19:14:20 UTC
Can i close this bug ? with the new html engines, is this still valid ?