diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-10-02 12:38:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 12:38:16 +0200 |
commit | aa1d7fe1e9d9c63691b46d7d1c4c37e2c814bfc5 (patch) | |
tree | ca9bc03868187337956feb47e878f49e55b75422 /lib/pure/xmltree.nim | |
parent | f785174c6009969ab853e0e2ce28f68c8b961776 (diff) | |
download | Nim-aa1d7fe1e9d9c63691b46d7d1c4c37e2c814bfc5.tar.gz |
closureiters: fixes #15243 (#15454) [backport:1.2]
* fixes #15243 [backport:1.2]
Diffstat (limited to 'lib/pure/xmltree.nim')
-rw-r--r-- | lib/pure/xmltree.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/xmltree.nim b/lib/pure/xmltree.nim index 00e9a031b..df8db1bb7 100644 --- a/lib/pure/xmltree.nim +++ b/lib/pure/xmltree.nim @@ -45,7 +45,7 @@ type XmlNodeKind* = enum ## Different kinds of XML nodes. xnText, ## a text element - xnVerbatimText, ## + xnVerbatimText, ## xnElement, ## an element with 0 or more children xnCData, ## a CDATA node xnEntity, ## an entity (like ``&thing;``) @@ -103,7 +103,7 @@ proc newText*(text: string): XmlNode = result = newXmlNode(xnText) result.fText = text -proc newVerbatimText*(text: string): XmlNode {.since: (1, 3).} = +proc newVerbatimText*(text: string): XmlNode {.since: (1, 3).} = ## Creates a new ``XmlNode`` of kind ``xnVerbatimText`` with the text `text`. ## **Since**: Version 1.3. result = newXmlNode(xnVerbatimText) |