mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 21:34:07 +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
|
// 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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue