-
- wrbuf_printf(
- wrbuf,
- " score=\"%i\""
- " rank=\"" ZINT_FORMAT "\""
- " size=\"%i\""
- " set=\"zebra::%s\"/>\n",
- score,
- recordAttr->staticrank,
- recordAttr->recordSize,
- elemsetname);
+ if (score >= 0)
+ retrieve_puts_attr_int(wrbuf, "score", score);
+
+ wrbuf_printf(wrbuf,
+ " rank=\"" ZINT_FORMAT "\""
+ " size=\"%i\""
+ " set=\"zebra::%s\"/>\n",
+ recordAttr->staticrank,
+ recordAttr->recordSize,
+ elemsetname);