xpath1.0 BUGFIX operator minus needs spaces around
... to not be confused as part of a NameTest.
diff --git a/src/plugins_types/xpath1.0.c b/src/plugins_types/xpath1.0.c
index fbe1ed5..25b3589 100644
--- a/src/plugins_types/xpath1.0.c
+++ b/src/plugins_types/xpath1.0.c
@@ -198,7 +198,7 @@
/* token processed */
++(*cur_idx);
} else {
- if ((cur_tok == LYXP_TOKEN_OPER_LOG) || (cur_tok == LYXP_TOKEN_OPER_UNI)) {
+ if ((cur_tok == LYXP_TOKEN_OPER_LOG) || (cur_tok == LYXP_TOKEN_OPER_UNI) || (cur_tok == LYXP_TOKEN_OPER_MATH)) {
/* copy the token with spaces around */
mem = realloc(*str_value, *str_len + 1 + xp_val->exp->tok_len[*cur_idx] + 2);
LY_CHECK_GOTO(!mem, error_mem);