diff --git a/src/bgl_babylon.cc b/src/bgl_babylon.cc index 8ae6b7bc..a74ae6cb 100644 --- a/src/bgl_babylon.cc +++ b/src/bgl_babylon.cc @@ -551,6 +551,11 @@ bgl_entry Babylon::readEntry( ResourceHandler * resourceHandler ) if( block.length ) free( block.data ); + // Some dictionaries can in fact have an empty headword, so we + // make it non-empty here to differentiate between the end of entries. + if ( entry.headword.empty() ) + entry.headword += ' '; + return entry; break; diff --git a/src/bgl_babylon.hh b/src/bgl_babylon.hh index c4fa412b..cf7b535a 100644 --- a/src/bgl_babylon.hh +++ b/src/bgl_babylon.hh @@ -193,7 +193,7 @@ public: enum { - ParserVersion = 8 + ParserVersion = 9 }; private: