* fixes #15243 [backport:1.2]
This commit is contained in:
parent
f785174c60
commit
aa1d7fe1e9
6 changed files with 153 additions and 72 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue