diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2010-02-28 18:14:27 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2010-02-28 18:14:27 +0100 |
commit | ddb718548278290a1c25c1bbfba82bc5581457a7 (patch) | |
tree | 47d98e4dcd47a5821680c7da250f98ab19f4b16b /lib/pure/xmltree.nim | |
parent | 230567588b22674e6132411803a518a9a901ff50 (diff) | |
download | Nim-ddb718548278290a1c25c1bbfba82bc5581457a7.tar.gz |
bugfixes: re; pegs module
Diffstat (limited to 'lib/pure/xmltree.nim')
-rwxr-xr-x | lib/pure/xmltree.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pure/xmltree.nim b/lib/pure/xmltree.nim index 7b77fe156..c79b9ad40 100755 --- a/lib/pure/xmltree.nim +++ b/lib/pure/xmltree.nim @@ -223,9 +223,8 @@ proc newXmlTree*(tag: string, children: openArray[PXmlNode], result.fAttr = attributes proc xmlConstructor(e: PNimrodNode): PNimrodNode {.compileTime.} = - ## use this procedure to define a new XML tag - expectLen(e, 1) - var a = e[0] + expectLen(e, 2) + var a = e[1] if a.kind == nnkCall: result = newCall("newXmlTree", toStrLit(a[0])) var attrs = newCall("newStringTable", []) |