projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f97d979
)
Prevent leading blank in output of yaz_rpnquery_to_wrbuf
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 20 Jan 2006 14:44:55 +0000
(14:44 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 20 Jan 2006 14:44:55 +0000
(14:44 +0000)
src/querytowrbuf.c
patch
|
blob
|
history
diff --git
a/src/querytowrbuf.c
b/src/querytowrbuf.c
index
50e32c4
..
3791082
100644
(file)
--- a/
src/querytowrbuf.c
+++ b/
src/querytowrbuf.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* All rights reserved.
*
* Copyright (C) 1995-2005, Index Data ApS
* All rights reserved.
*
- * $Id: querytowrbuf.c,v 1.2 2006-01-20 11:01:46 adam Exp $
+ * $Id: querytowrbuf.c,v 1.3 2006-01-20 14:44:55 adam Exp $
*/
/**
*/
/**
@@
-189,7
+189,7
@@
void yaz_rpnquery_to_wrbuf(WRBUF b, const Z_RPNQuery *rpn)
if (attrset)
{
ast = attrset->value;
if (attrset)
{
ast = attrset->value;
- wrbuf_printf(b, " @attrset %s ", attrset->desc);
+ wrbuf_printf(b, "@attrset %s ", attrset->desc);
}
yaz_rpnstructure_to_wrbuf(b, rpn->RPNStructure);
wrbuf_chop_right(b);
}
yaz_rpnstructure_to_wrbuf(b, rpn->RPNStructure);
wrbuf_chop_right(b);
@@
-203,7
+203,7
@@
void yaz_query_to_wrbuf(WRBUF b, const Z_Query *q)
{
case Z_Query_type_1:
case Z_Query_type_101:
{
case Z_Query_type_1:
case Z_Query_type_101:
- wrbuf_printf(b,"RPN:");
+ wrbuf_printf(b,"RPN: ");
yaz_rpnquery_to_wrbuf(b, q->u.type_1);
break;
case Z_Query_type_2:
yaz_rpnquery_to_wrbuf(b, q->u.type_1);
break;
case Z_Query_type_2: