From a764a5b9bced8159d61647c42f6168a44453faff Mon Sep 17 00:00:00 2001 From: kemifl Date: Mon, 23 Nov 2020 19:53:57 +0100 Subject: fix #14056 (#16071) fix #14056, incorporate review comments --- tests/stdlib/tmitems.nim | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/stdlib/tmitems.nim b/tests/stdlib/tmitems.nim index 17265e1f7..c0ced7cab 100644 --- a/tests/stdlib/tmitems.nim +++ b/tests/stdlib/tmitems.nim @@ -16,7 +16,18 @@ fpqeew -''' + + + This is a Docbook title + + This is a Docbook paragraph containing emphasized, + literal and replaceable + text. Sometimes scrunched together like this: + literalreplaceable + and sometimes not: + literal replaceable + +''' """ block: @@ -123,7 +134,7 @@ block: x.num += 10 echo j -import xmltree, xmlparser, streams, strtabs +import xmltree, xmlparser, parsexml, streams, strtabs block: var d = parseXml(newStringStream """ @@ -134,3 +145,17 @@ block: x = <>Student(Name=x.attrs["Name"] & "foo") d[1].attrs["Name"] = "bar" echo d + +block: + var d = parseXml(newStringStream """ + This is a Docbook title + + This is a Docbook paragraph containing emphasized, + literal and replaceable + text. Sometimes scrunched together like this: + literalreplaceable + and sometimes not: + literal replaceable + +""",{reportComments, reportWhitespace}) + echo d -- cgit 1.4.1-2-gfad0