Bug 35343

Summary: [Qt] Problems with text-align:justify for non-latin1 text
Product: WebKit Reporter: qt-info
Component: TextAssignee: QtWebKit Unassigned <webkit-qt-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: benjamin, bruce.tompkinson, kent.hansen
Priority: P3 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
html file that will show the issue none

qt-info
Reported 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.
Attachments
html file that will show the issue (1.60 KB, text/html)
2010-02-24 07:52 PST, qt-info
no flags
qt-info
Comment 1 2010-02-24 07:52:43 PST
Created attachment 49394 [details] html file that will show the issue
Tor Arne Vestbø
Comment 2 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
Kent Hansen
Comment 3 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?
Tor Arne Vestbø
Comment 4 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>
Benjamin Poulain
Comment 5 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
Note You need to log in before you can comment on or make changes to this bug.