From d4694059a180367a08ab7bc593597ac93225a0b2 Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Sat, 23 Jul 2011 09:18:06 +1000 Subject: [PATCH] MSHTML VBufBackend: fix for #1688. Only check the notAllWhitespace variable to see if the textNode content should be ignored if we're not allowing preformatted text. --- nvdaHelper/vbufBackends/mshtml/mshtml.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvdaHelper/vbufBackends/mshtml/mshtml.cpp b/nvdaHelper/vbufBackends/mshtml/mshtml.cpp index c44e61655..be07645ec 100755 --- a/nvdaHelper/vbufBackends/mshtml/mshtml.cpp +++ b/nvdaHelper/vbufBackends/mshtml/mshtml.cpp @@ -335,7 +335,10 @@ inline wstring getTextFromHTMLDOMNode(IHTMLDOMNode* pHTMLDOMNode, bool allowPref } } SysFreeString(data); - return notAllWhitespace?s:L""; + if(!allowPreformattedText&&!notAllWhitespace) { + return L""; + } + return s; } #define macro_addHTMLCurrentStyleToNodeAttrs(styleName,attrName,node,currentStyleObj,tempBSTR) {\ -- 2.11.0