Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit e881e0a

Browse files
physikerweltgerritforge-inc
authored andcommitted
Merge "Update NTCIR topics to latest LaTeXML format"
2 parents 11af60b + 6c1afb4 commit e881e0a

3 files changed

Lines changed: 6824 additions & 6791 deletions

File tree

src/main/java/com/formulasearchengine/mathmlquerygenerator/XQueryGenerator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ private String generateConstraint (Node node, boolean isRoot) {
213213
relativeXPath += "/*[" + i + "]";
214214
out += " and *[" + i + "]";
215215
}
216-
out += "[" + generateConstraint( child ) + "]";
216+
final String constraint = generateConstraint( child );
217+
if ( constraint.length() > 0 ) {
218+
out += "[" + constraint + "]";
219+
}
217220
}
218221

219222
} else if ( child.getNodeType() == Node.TEXT_NODE ) {

0 commit comments

Comments
 (0)