X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=retrieval%2Fd1_sutrs.c;fp=retrieval%2Fd1_sutrs.c;h=ade87d0fc819961f95edcef4cccc889bedd1773a;hp=21174089e620230de17f559895fba749e7c8ff2b;hb=aabdf39f20d833179fefca73910a0b2649d0d7e6;hpb=3eef743c121a36edcf66e4e3651d5ceb8b4e0156 diff --git a/retrieval/d1_sutrs.c b/retrieval/d1_sutrs.c index 2117408..ade87d0 100644 --- a/retrieval/d1_sutrs.c +++ b/retrieval/d1_sutrs.c @@ -3,7 +3,7 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Id: d1_sutrs.c,v 1.7 2002-05-03 13:48:27 adam Exp $ + * $Id: d1_sutrs.c,v 1.8 2002-10-08 22:18:23 adam Exp $ * */ @@ -55,7 +55,8 @@ static int nodetobuf(data1_node *n, int select, WRBUF b, int indent, int col) int l = c->u.data.len; int first = 0; - if (c->u.data.what == DATA1I_text && c->u.data.formatted_text) + if ((c->u.data.what == DATA1I_text || + c->u.data.what == DATA1I_xmltext) && c->u.data.formatted_text) { wrbuf_putc(b, '\n'); wrbuf_write(b, c->u.data.data, c->u.data.len); @@ -63,7 +64,8 @@ static int nodetobuf(data1_node *n, int select, WRBUF b, int indent, int col) wrbuf_write(b, line, strlen(line)); col = indent * NTOBUF_INDENT; } - else if (c->u.data.what == DATA1I_text) + else if (c->u.data.what == DATA1I_text || + c->u.data.what == DATA1I_xmltext) { while (l) {