Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
commit
635ad3b336
31 changed files with 460 additions and 331 deletions
|
|
@ -78,7 +78,7 @@ proc innerText*(n: PXmlNode): string =
|
|||
result = ""
|
||||
assert n.k == xnElement
|
||||
for i in 0 .. n.s.len-1:
|
||||
if n.s[i].k in {xnText, xnEntity}: result.add(n.fText)
|
||||
if n.s[i].k in {xnText, xnEntity}: result.add(n.s[i].fText)
|
||||
|
||||
proc tag*(n: PXmlNode): string {.inline.} =
|
||||
## gets the tag name of `n`. `n` has to be an ``xnElement`` node.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue