mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-28 03:44:07 +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'@');
|
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;
|
||||||
|
|
Loading…
Reference in a new issue