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
wstring folded = Folding::applyWhitespaceOnly( curString );
if( folded.empty() )
if( curString.empty() )
{
wasEmptyLine = true;
continue;
}
else
{
if( wasEmptyLine )
if( wasEmptyLine && !Folding::applyWhitespaceOnly( curString ).empty() )
gdWarning( "Orphan string at line %i", scanner.getLinesRead() - 1 );
}