Display unknown token for html key in console

Change-Id: I57740e52a8e76d4f0f68cb2e58ca3f1aab249a0b
Reviewed-on: https://gerrit.libreoffice.org/35989
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet 2017-04-01 02:17:02 +02:00
parent c0ba76030a
commit 884499a03e

View File

@ -1390,7 +1390,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
// PlugIns require original token name. Convert to lower case only for searching.
nToken = GetHTMLOption( sName.toAsciiLowerCase() ); // Name is ready
SAL_WARN_IF( nToken==HTML_O_UNKNOWN, "svtools",
"GetOption: unknown HTML option" );
"GetOption: unknown HTML option '" << sName << "'" );
bool bStripCRLF = (nToken < HTML_OPTION_SCRIPT_START ||
nToken >= HTML_OPTION_SCRIPT_END) &&
(!pNoConvertToken || nToken != *pNoConvertToken);