This commit is contained in:
Dominik Picheta 2017-11-27 17:51:23 +00:00 • committed by Andreas Rumpf
commit 45821ea2ab
3 changed files with 55 additions and 34 deletions

View file

@ -59,8 +59,8 @@ proc xmlCheckedTag*(e: NimNode, tag: string, optAttr = "", reqAttr = "",
# copy the attributes; when iterating over them these lists
# will be modified, so that each attribute is only given one value
var req = split(reqAttr)
var opt = split(optAttr)
var req = splitWhitespace(reqAttr)
var opt = splitWhitespace(optAttr)
result = newNimNode(nnkBracket, e)
result.add(newStrLitNode("<"))
result.add(newStrLitNode(tag))