DSL: A little change in orphan strings search

This commit is contained in:
Abs62 2017-11-07 23:13:16 +03:00
parent 6aa6dbce82
commit 635a44fced

5
dsl.cc
View file

@ -2294,15 +2294,14 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
// Check for orphan strings // Check for orphan strings
wstring folded = Folding::applyWhitespaceOnly( curString ); if( curString.empty() )
if( folded.empty() )
{ {
wasEmptyLine = true; wasEmptyLine = true;
continue; continue;
} }
else else
{ {
if( wasEmptyLine ) if( wasEmptyLine && !Folding::applyWhitespaceOnly( curString ).empty() )
gdWarning( "Orphan string at line %i", scanner.getLinesRead() - 1 ); gdWarning( "Orphan string at line %i", scanner.getLinesRead() - 1 );
} }