diff options
author | Christina Rossmanith <ChrRossmanith@web.de> | 2011-05-12 11:18:14 +0200 |
---|---|---|
committer | Christina Rossmanith <ChrRossmanith@web.de> | 2011-06-04 13:04:32 +0200 |
commit | 56d6589368c2e88cffec0c2e518f7c90863eeae6 (patch) | |
tree | ac18058d5ed6cb7195fddb8cab0068e3c2f97a0b /svtools/source/svhtml | |
parent | b419b82c145a870d2da85d836fe7155e3282f6cd (diff) |
Added HTML_TOKEN_ONOFF test
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 4681131fba9d..67aa8abc9b40 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -1225,8 +1225,9 @@ int HTMLParser::_GetNextToken() // fdo#34666 fdo#36080 fdo#36390: closing "/>"?: // return HTML_<TOKEN>_OFF instead of HTML_<TOKEN>_ON - if (aToken.Len() >= 1 && '/' == aToken.GetChar(aToken.Len()-1)) { - nRet += 1; // HTML_<TOKEN>_ON -> HTML_<TOKEN>_OFF; + if ((HTML_TOKEN_ONOFF & nRet) && (aToken.Len() >= 1) && + ('/' == aToken.GetChar(aToken.Len()-1))) { + ++nRet; // HTML_<TOKEN>_ON -> HTML_<TOKEN>_OFF; } if( sal_Unicode(EOF) == nNextCh && rInput.IsEof() ) { |