[Bug 163609] Wordwrap breaks up URLs with dashes ('-')

Martin Koller kollix at aon.at
Thu Oct 1 20:56:54 BST 2009


https://bugs.kde.org/show_bug.cgi?id=163609





--- Comment #23 from Martin Koller <kollix aon at>  2009-10-01 21:56:47 ---
Here is the mail exchanged with Qt-Support [Issue N260387]:

Hi,

On Monday, 24. Aug 2009 21:42 kollix at aon.at wrote:
> regression in WordWrap AtWordBoundary
> Steps to reproduce / test case
> Looking at a bug report in KDE4/kmail regarding word wrapping when
> pasting long URLs, I found the following compatibility problem.
> In Qt3 with QTextEdit and setWrapPolicy(QTextEdit::AtWordBoundary)
> the text was not wrapped at "-" characters, which is good.
> In Qt4 even with the Q3 compatibility class Q3TextEdit, the behavior
> is different and text is wrapped at "-" characters. The same is true
> for Qt4's QTextEdit widget.
>
> How can we solve the problem of not being able to paste long URLs but
> still use word wrapping in the way it worked with Qt3 ?
>
> See also https://bugs.kde.org/show_bug.cgi?id=163609
> More information

This is because the UnicodeTables and harfbuzz recognize a "-" as a soft hyphen
ie a word break. If you look at a contribution to add this feature to
                                src/gui/text/qtextlayout.cpp
then we will seek to add that feature for a future release of Qt for Linx.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list