mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Dsl: One more fix for '@' handling
This commit is contained in:
parent
992f800263
commit
5a0a8102b7
10
dsl.cc
10
dsl.cc
|
@ -1412,6 +1412,16 @@ void DslDictionary::getArticleText( uint32_t articleAddress, QString & headword,
|
|||
hpos = str.find( L'@');
|
||||
if( hpos == wstring::npos || str[ hpos - 1 ] == L'\\' )
|
||||
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
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue