summaryrefslogtreecommitdiff
path: root/svtools/source/svhtml/parhtml.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/svhtml/parhtml.cxx')
-rw-r--r--svtools/source/svhtml/parhtml.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 14ed546ca9fe..c80fd00d77ed 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1120,10 +1120,11 @@ HtmlTokenId HTMLParser::GetNextToken_()
// and there is an off token, return off token instead
nRet = static_cast<HtmlTokenId>(static_cast<int>(nRet) + 1);
}
- else if( HtmlTokenId::LINEBREAK!=nRet )
+ else if( HtmlTokenId::LINEBREAK!=nRet || !maNamespace.isEmpty())
{
// and there is no off token, return unknown token.
// (except for </BR>, that is treated like <BR>)
+ // No exception for XHTML, though.
nRet = HtmlTokenId::UNKNOWNCONTROL_OFF;
}
}