Skip to content

Commit

Permalink
handle <e/> properly (closes #179)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-martian committed Feb 15, 2024
1 parent 071c27e commit 37c717f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ(2.52)

m4_define([PKG_VERSION_MAJOR], [3])
m4_define([PKG_VERSION_MINOR], [7])
m4_define([PKG_VERSION_PATCH], [6])
m4_define([PKG_VERSION_PATCH], [7])

# Bump if the ABI (not API) changed in a backwards-incompatible manner
m4_define([PKG_VERSION_ABI], [3])
Expand Down
5 changes: 3 additions & 2 deletions lttoolbox/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,9 @@ Compiler::procEntry()
elements.push_back(e);
}

while(true)
{
bool contentful = !xmlTextReaderIsEmptyElement(reader);
// do nothing if it's <e/>, but while(true) otherwise
while (contentful) {
int ret = xmlTextReaderRead(reader);
if(ret != 1)
{
Expand Down

0 comments on commit 37c717f

Please sign in to comment.