From 8bfc7878a725d8f1c2754893bc8b660ff78f89bf Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 12 Apr 2015 17:34:28 +0200 Subject: Serialize greedy flag --- src/plugins/xml/XmlOutput.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/plugins/xml/XmlOutput.cpp b/src/plugins/xml/XmlOutput.cpp index 5713f29..fc86350 100644 --- a/src/plugins/xml/XmlOutput.cpp +++ b/src/plugins/xml/XmlOutput.cpp @@ -258,6 +258,9 @@ static Rooted transformTokenDescriptor(Handle parent, token = Rooted{new Text(P.mgr, tag, descr.token)}; } tag->addChild(token); + if (!descr.greedy) { + tag->getAttributes()["greedy"] = "false"; + } return tag; } -- cgit v1.2.3