mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
* Put the value in an attribute.
This commit is contained in:
parent
4250b641d8
commit
7455fd8835
1 changed files with 3 additions and 2 deletions
|
@ -60,8 +60,9 @@ static void printResult(EvalState & state, Expr e,
|
|||
if (matchValidValues(valids, valids2)) {
|
||||
for (ATermIterator j(valids2); j; ++j) {
|
||||
Expr e = evalExpr(state, *j);
|
||||
XMLOpenElement elem(doc, "value");
|
||||
doc.writeCharData(showValue(e));
|
||||
XMLAttrs attrs;
|
||||
attrs["value"] = showValue(e);
|
||||
XMLOpenElement elem(doc, "value", attrs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue