DSL: Fix escaped brackets handling in inside card headwords

This commit is contained in:
Abs62 2022-04-30 12:56:37 +03:00
parent 8acb288c9e
commit f5fdb2ae51

View file

@ -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 );