Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
encoding
/
xml
/
newline_test.v
12
lines
·
11
sloc
·
221 bytes
·
b7ddc7da4853de0167532f1f4066827e86c6a42d
Raw
1
import
encoding.xml
2
3
fn
test_newline() {
4
doc := xml.XMLDocument.from_string(
'<?xml version="1.0" encoding="UTF-8"?>
5
<feed\r\nattr="value">
6
<title>Test</title>
7
</feed>
8
\r\n<\r\ntest\r\n>\r
9
<\r\n/\ntest\r>
10
')!
11
_ = doc
12
}
13