mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
DSL: A little change in orphan strings search
This commit is contained in:
parent
6aa6dbce82
commit
635a44fced
5
dsl.cc
5
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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue