X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=retrieval%2Fd1_write.c;h=bf8b8fe6c4de527833a3b33f580800edadcd6578;hp=51f2ff37c234d41755b4884bcd70e67d55444f5a;hb=651ccb74d12f2968e791b3f411a6c55bca68428a;hpb=848e461264a05c14f4ced38f2df25c2232779fdd diff --git a/retrieval/d1_write.c b/retrieval/d1_write.c index 51f2ff3..bf8b8fe 100644 --- a/retrieval/d1_write.c +++ b/retrieval/d1_write.c @@ -3,7 +3,7 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Id: d1_write.c,v 1.10 2002-04-15 09:06:30 adam Exp $ + * $Id: d1_write.c,v 1.11 2002-05-13 14:13:37 adam Exp $ */ #include @@ -43,13 +43,11 @@ static int nodetoidsgml(data1_node *n, int select, WRBUF b, int col) } else { -#if DATA1_USING_XATTR data1_xattr *p; -#endif + sprintf (line, "%*s<", col, ""); wrbuf_puts (b, line); wrbuf_puts (b, tag); -#if DATA1_USING_XATTR for (p = c->u.tag.attributes; p; p = p->next) { wrbuf_putc (b, ' '); @@ -59,7 +57,6 @@ static int nodetoidsgml(data1_node *n, int select, WRBUF b, int col) wrbuf_puts (b, p->value); wrbuf_putc (b, '"'); } -#endif wrbuf_puts(b, ">\n"); if (nodetoidsgml(c, select, b, (col > 40) ? 40 : col+2) < 0) return -1;