OSDN Git Service

MSHTML VBufBackend: improve the code that tries to strip unneeded whitespace that...
authorMichael Curran <mick@kulgan.net>
Wed, 20 Jul 2011 03:16:23 +0000 (13:16 +1000)
committerMichael Curran <mick@kulgan.net>
Wed, 20 Jul 2011 03:16:23 +0000 (13:16 +1000)
commita29ee5066bcb72a14a69c553e7e1119c44667fe5
treebc698a5b0a6fc1e5786db53a0d7b2cfac9427512
parent027cdc98a512d361f9b94d4054561cacc00a708c
MSHTML VBufBackend: improve the code that tries to strip unneeded whitespace that appears in IE9 documents by making sure that   whitespace is only stripped from the left if this is the first textNode in a block node.
This means it will no longer incorrectly remove the space that appears in a sentence straight after a link. The code however will always still collapse all remaining whitespace down to one single space, and also completely remove content that only has whitespace and nothing else.
The example document that showed this problem was: http://en.wikipedia.org/wiki/Big_Joe_Turner
The problem is in the intro paragraph.
nvdaHelper/vbufBackends/mshtml/mshtml.cpp
nvdaHelper/vbufBase/storage.h
user_docs/en/changes.t2t