mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
DSL: Fix escaped brackets handling in inside card headwords
This commit is contained in:
parent
8acb288c9e
commit
f5fdb2ae51
|
@ -208,7 +208,11 @@ ArticleDom::ArticleDom( wstring const & str, string const & dictName,
|
|||
if( ch == L'\n' )
|
||||
break;
|
||||
if( ch != L'\r' )
|
||||
{
|
||||
if( escaped && ( ch == L'(' || ch == ')' ) )
|
||||
linkTo.push_back( L'\\' );
|
||||
linkTo.push_back( ch );
|
||||
}
|
||||
}
|
||||
linkTo = Folding::trimWhitespace( linkTo );
|
||||
|
||||
|
|
Loading…
Reference in a new issue