Bug 32019 - [Qt] last word inside a tag is divided into two lines if it ends with non-ascii characters
Summary: [Qt] last word inside a tag is divided into two lines if it ends with non-asc...
Status: RESOLVED DUPLICATE of bug 31076
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
Keywords: Qt, QtTriaged
Depends on:
Reported: 2009-12-01 06:45 PST by eekaikko
Modified: 2011-03-06 01:56 PST (History)
5 users (show)

See Also:

testcase (562 bytes, text/html)
2009-12-01 06:52 PST, eekaikko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description eekaikko 2009-12-01 06:45:31 PST
If a word is the last word inside a tag, it ends with non-ascii utf8 characters and there are no characters after it before the end-tag, the word may be cut into two lines. Draw the window narrower with the test case (it may be necessary to enlarge the font if the browser window can't be narrow enough).

This has been confirmed with QWebView and also in Arora browser on Linux and Windows, but couldn't be repeated with KHTML or Safari, i.e. it's probably Qt specific.

The test case is below, it's also attached:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<span>doesn't happen: not divided</span>
<div>happens: äöäöäöääöå</div>
<span>happens: abcdefgäöå</span>
<div>doesn't happen: ölööööäå.</div>
<div>doesn't happen: not divided</div>
<span>happens: äöäöäöääöå</span>
<div>happens: abcdefgäöå</div>
<span>doesn't happen: ölööööäå.</span>
<span>happens? dfabcöbcadf</span>
<span>happens? tabcöäbcaa</span>
<span>happens? öäbcaadfd</span>
Comment 1 eekaikko 2009-12-01 06:52:34 PST
Created attachment 44072 [details]

Did the previous attachement come in? Anyways, the text in the original report text was a bit outdated, here is the final one...
Comment 2 Tor Arne Vestbø 2010-03-10 06:38:13 PST
Please follow the QtWebKit bug reporting guidelines when reporting bugs.

See http://trac.webkit.org/wiki/QtWebKitBugs


  - The 'QtWebKit' component should only be used for bugs/features in the
    public QtWebKit API layer, not to signify that the bug is specific to
    the Qt port of WebKit


  - Add the keyword 'Qt' to signal that it's a Qt-related bug

Comment 3 Kent Hansen 2010-03-11 02:02:05 PST
Reproduced on Linux with 4.6, r55658.
Comment 4 Joe Wild 2011-03-04 14:52:42 PST
Bug 34470 - [Qt] Non-ASCII line breaking doesn't work properly (seen
at www.mail.ru)

https://bugs.webkit.org/show_bug.cgi?id=32019 ?
Bug 32019 - [Qt] last word inside a tag is divided into two lines if
it ends with non-ascii characters

  I looked at both these errors and was not able to reproduce either.
  Neither has been commented on in almost a year.  I suspect these
  were duplicates that have been fixed along the way.

  Unless someone can verify these are still a problem, I think these
  should be resolved as WorksForMe.
Comment 5 Benjamin Poulain 2011-03-06 01:56:21 PST
My bet is that has been fixed by Pierre in https://bugs.webkit.org/show_bug.cgi?id=31076

*** This bug has been marked as a duplicate of bug 31076 ***