mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -8,13 +8,13 @@ fn test_valid_parsing() {
|
|||
|
||||
expected := xml.XMLDocument{
|
||||
root: xml.XMLNode{
|
||||
name: 'book'
|
||||
name: 'book'
|
||||
attributes: {
|
||||
'category': 'web'
|
||||
}
|
||||
children: [
|
||||
xml.XMLNode{
|
||||
name: 'title'
|
||||
name: 'title'
|
||||
attributes: {
|
||||
'lang': 'en'
|
||||
'code:type': 'const char*'
|
||||
|
@ -22,18 +22,18 @@ fn test_valid_parsing() {
|
|||
children: ['Learning XML']
|
||||
},
|
||||
xml.XMLNode{
|
||||
name: 'author'
|
||||
name: 'author'
|
||||
attributes: {
|
||||
'attr': ' surrounding spaces '
|
||||
}
|
||||
children: ['Erik T. Ray']
|
||||
},
|
||||
xml.XMLNode{
|
||||
name: 'year'
|
||||
name: 'year'
|
||||
children: ['2003']
|
||||
},
|
||||
xml.XMLNode{
|
||||
name: 'price'
|
||||
name: 'price'
|
||||
children: ['39.95']
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue