forked from lix-project/lix
Merge pull request #712 from pSub/print-meta-license
Print license information on '--xml --meta'
This commit is contained in:
commit
afef347157
|
@ -1140,6 +1140,18 @@ static void opQuery(Globals & globals, Strings opFlags, Strings opArgs)
|
||||||
attrs3["value"] = v->listElems()[j]->string.s;
|
attrs3["value"] = v->listElems()[j]->string.s;
|
||||||
xml.writeEmptyElement("string", attrs3);
|
xml.writeEmptyElement("string", attrs3);
|
||||||
}
|
}
|
||||||
|
} else if (v->type == tAttrs) {
|
||||||
|
attrs2["type"] = "strings";
|
||||||
|
XMLOpenElement m(xml, "meta", attrs2);
|
||||||
|
Bindings & attrs = *v->attrs;
|
||||||
|
for (auto &i : attrs) {
|
||||||
|
Attr & a(*attrs.find(i.name));
|
||||||
|
if(a.value->type != tString) continue;
|
||||||
|
XMLAttrs attrs3;
|
||||||
|
attrs3["type"] = i.name;
|
||||||
|
attrs3["value"] = a.value->string.s;
|
||||||
|
xml.writeEmptyElement("string", attrs3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue