diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-12 17:34:28 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:24:15 +0200 |
commit | 8bfc7878a725d8f1c2754893bc8b660ff78f89bf (patch) | |
tree | c34273dfa0ef6e22f187b51a2218999f3fdb5c99 | |
parent | be79585f0e81b27ce3dc6b94f1f502ff86dcef68 (diff) |
Serialize greedy flag
-rw-r--r-- | src/plugins/xml/XmlOutput.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Element> transformTokenDescriptor(Handle<Element> parent, token = Rooted<Text>{new Text(P.mgr, tag, descr.token)}; } tag->addChild(token); + if (!descr.greedy) { + tag->getAttributes()["greedy"] = "false"; + } return tag; } |