qt5base-lts/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt 15414257b3 Don't count no-break spaces as trailing spaces
No-break-spaces should not be counted in the space data, but rather
be treated as any other non-breakable character. We were already
taking care of this in the loop we reach if the item starts with
a character which isn't whitespace, but there is a second loop for
items that begin with whitespace characters.

The result of this was that in certain circumstances where you gave
the nbsp its own format and made the line wrap, the previous line
would count an extra trailing space and it would swallow the first
character in its following line.

[ChangeLog][QtGui][Text] Fixed a bug where a no-break space would
sometimes cause the first character of the containing line to not be
displayed.

Task-number: QTBUG-56714
Change-Id: Idd760a389052e6de70f6cc397122b217987fa5f2
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2016-11-09 16:24:46 +00:00
..
qabstracttextdocumentlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qcssparser Don't crash while parsing malformed CSS 2016-10-19 15:38:56 +00:00
qfont Tests: Harmonize code checking on platform name. 2015-09-24 07:49:30 +00:00
qfontcache Fix bugs causing Thin font weights to be ignored or mishandled. 2016-06-01 02:29:51 +00:00
qfontdatabase Update copyright headers 2015-02-11 06:49:51 +00:00
qfontmetrics Insert leading after each line, not before 2015-10-09 15:18:11 +00:00
qglyphrun Fix bounding rect of glyph runs in multi-line QTextLayout 2016-01-30 06:53:44 +00:00
qrawfont Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qstatictext Enable most of tst_qstatictext on non-developer builds 2016-03-10 15:45:41 +00:00
qsyntaxhighlighter tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextblock tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextcursor Hide better the private API QTextCursor constructors 2016-01-22 03:36:16 +00:00
qtextdocument Add missing test for QReguarExpression for QTextDocument::findMultiple 2016-09-20 21:23:08 +00:00
qtextdocumentfragment tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextdocumentlayout tst_qtextcocumentlayout::blockVisibility - make the test more robust 2016-01-19 14:48:47 +00:00
qtextformat tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextlayout Don't count no-break spaces as trailing spaces 2016-11-09 16:24:46 +00:00
qtextlist tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextobject Update copyright headers 2015-02-11 06:49:51 +00:00
qtextodfwriter Update copyright headers 2015-02-11 06:49:51 +00:00
qtextpiecetable tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextscriptengine Update copyright headers 2015-02-11 06:49:51 +00:00
qtexttable tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qzip QZip*: don't hold QZipReader::FileInfo in QList 2015-07-19 10:35:41 +00:00
text.pro Enable most of tst_qstatictext on non-developer builds 2016-03-10 15:45:41 +00:00