Bug 32019

Summary: [Qt] last word inside a tag is divided into two lines if it ends with non-ascii characters
Product: WebKit Reporter: eekaikko
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, benjamin, joseph.wild, kent.hansen, mitz
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
testcase none

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]
testcase

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

Specifically:

  - 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

      http://trac.webkit.org/wiki/QtWebKitBugs#Component

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

      http://trac.webkit.org/wiki/QtWebKitBugs#Keywords
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
https://bugs.webkit.org/show_bug.cgi?id=34470
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 ***