From 635a44fced3b423ff55e1a970d467e8d70abbd84 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Tue, 7 Nov 2017 23:13:16 +0300 Subject: [PATCH] DSL: A little change in orphan strings search --- dsl.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dsl.cc b/dsl.cc index 561d5408..d7502ed5 100644 --- a/dsl.cc +++ b/dsl.cc @@ -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 ); }