DSL: Fix {(...)} case handling in insided cards

This commit is contained in:
Abs62 2019-06-24 17:59:13 +03:00
parent 09a7d4db33
commit f0b7b8e33c

View file

@ -214,6 +214,7 @@ ArticleDom::ArticleDom( wstring const & str, string const & dictName,
if( !linkTo.empty() )
{
list< wstring > allLinkEntries;
processUnsortedParts( linkTo, true );
expandOptionalParts( linkTo, &allLinkEntries );
for( list< wstring >::iterator entry = allLinkEntries.begin();
@ -244,7 +245,6 @@ ArticleDom::ArticleDom( wstring const & str, string const & dictName,
textNode = 0;
wstring linkText = Folding::trimWhitespace( *entry );
processUnsortedParts( linkText, true );
ArticleDom nodeDom( linkText, dictName, headword_ );
Node link( Node::Tag(), GD_NATIVE_TO_WS( L"@" ), wstring() );