opt: headword parse modification

This commit is contained in:
Xiao Yi Fang 2024-07-23 08:46:44 +08:00
parent a451755ddb
commit 2fff75aad9

View file

@ -1687,7 +1687,7 @@ static void handleIdxSynFile( string const & fileName,
if ( strstr( headword, "&#" ) ) { if ( strstr( headword, "&#" ) ) {
// Decode some html-coded symbols in headword // Decode some html-coded symbols in headword
headword = Html::unescapeUtf8( headword ); headword = Html::unescapeUtf8( headword );
wordLen = strlen( headword ); wordLen = headword.length();
} }
if ( !isSynFile ) { if ( !isSynFile ) {