summaryrefslogtreecommitdiff
path: root/src/plugins/xml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-12 17:34:28 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:24:15 +0200
commit8bfc7878a725d8f1c2754893bc8b660ff78f89bf (patch)
treec34273dfa0ef6e22f187b51a2218999f3fdb5c99 /src/plugins/xml
parentbe79585f0e81b27ce3dc6b94f1f502ff86dcef68 (diff)
Serialize greedy flag
Diffstat (limited to 'src/plugins/xml')
-rw-r--r--src/plugins/xml/XmlOutput.cpp3
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;
}