Bug 35343 - [Qt] Problems with text-align:justify for non-latin1 text
Summary: [Qt] Problems with text-align:justify for non-latin1 text
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P3 Normal
Assignee: QtWebKit Unassigned
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-02-24 07:51 PST by qt-info
Modified: 2010-05-06 06:21 PDT (History)
3 users (show)

See Also:


Attachments
html file that will show the issue (1.60 KB, text/html)
2010-02-24 07:52 PST, qt-info
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description qt-info 2010-02-24 07:51:15 PST
When the alignment for a span is set to justified the HTML page does not show it's text as justified to both margins.
When you view the example you can see that the text is justified to the left but not the right.
Comment 1 qt-info 2010-02-24 07:52:43 PST
Created attachment 49394 [details]
html file that will show the issue
Comment 2 Tor Arne Vestbø 2010-03-10 06:43:18 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-12 03:56:07 PST
(In reply to comment #1)
> Created an attachment (id=49394) [details]
> html file that will show the issue

Wow, what kind of weird encoding is that? Could you post a latin-1/ASCII file?
Comment 4 Tor Arne Vestbø 2010-03-16 03:43:31 PDT
Reproduced in trunk against Qt 4.6.2 on Windows7 with attached testcase.

The following test case does not exhibit the behavior:

data:text/html,<p dir=rtl style="direction:rtl;unicode-bidi:embed;text-align:justify"><span lang=AR-SA>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce laoreet mollis ipsum quis elementum. Cras consequat tincidunt feugiat. Praesent ac varius quam. Nulla velit metus, semper quis sagittis id, volutpat ut lacus. Cras elementum ornare accumsan. Vestibulum vitae purus ac elit gravida interdum eget eget metus. </span></p>
Comment 5 Benjamin Poulain 2010-05-06 06:21:10 PDT
It works now. I think it is another duplicate of http://bugreports.qt.nokia.com/browse/QTBUG-10421