Dsl: One more fix for '@' handling

This commit is contained in:
Abs62 2017-07-04 01:01:51 +03:00
parent 992f800263
commit 5a0a8102b7

10
dsl.cc
View file

@ -1412,6 +1412,16 @@ void DslDictionary::getArticleText( uint32_t articleAddress, QString & headword,
hpos = str.find( L'@'); hpos = str.find( L'@');
if( hpos == wstring::npos || str[ hpos - 1 ] == L'\\' ) if( hpos == wstring::npos || str[ hpos - 1 ] == L'\\' )
break; break;
else
{
// Check for unescaped '@' inside string
size_t i;
for( i = 0; i < hpos; i++ )
if( !isDslWs( str[ i ] ) )
break;
if( i < hpos )
break;
}
} }
else else
break; break;