mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-08 22:47:27 +00:00
to text and text= procs. Remove unnecessary LF for xnVerbatimText in $ proc.
This commit is contained in:
@@ -99,3 +99,18 @@ block: # bug #21290
|
||||
doAssert s == """<foo>
|
||||
<bar>Hola<qux> <plugh /> </qux></bar>
|
||||
</foo>"""
|
||||
|
||||
block: #21541
|
||||
let root = <>root()
|
||||
root.add <>child(newText("hello"))
|
||||
root.add <>more(newVerbatimText("hola"))
|
||||
let s = $root
|
||||
doAssert s == """<root>
|
||||
<child>hello</child>
|
||||
<more>hola</more>
|
||||
</root>"""
|
||||
|
||||
let temp = newVerbatimText("Hello!")
|
||||
doAssert temp.text == "Hello!"
|
||||
temp.text = "Hola!"
|
||||
doAssert temp.text == "Hola!"
|
||||
|
||||
Reference in New Issue
Block a user