Commit 099061f4 authored by Jeff Young's avatar Jeff Young 🇺🇦
Browse files

Process nested formatting within a variable cross-reference.

parent 8b75a32c
Pipeline #555525873 failed with stages
in 21 minutes and 11 seconds
......@@ -301,11 +301,23 @@ wxString SCHEMATIC::ConvertRefsToKIIDs( const wxString& aSource ) const
{
wxString token;
bool isCrossRef = false;
int nesting = 0;
for( i = i + 2; i < sourceLen; ++i )
{
if( aSource[i] == '{'
&& ( aSource[i-1] == '_' || aSource[i-1] == '^' || aSource[i-1] == '~' ) )
{
nesting++;
}
if( aSource[i] == '}' )
break;
{
nesting--;
if( nesting < 0 )
break;
}
if( aSource[i] == ':' )
isCrossRef = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment