mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +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
|
@ -190,12 +190,12 @@ fn (data &StrIntpData) process_str_intp_data(mut sb strings.Builder) {
|
|||
sign_set := sign == 1
|
||||
|
||||
mut bf := strconv.BF_param{
|
||||
pad_ch: pad_ch // padding char
|
||||
len0: len0_set // default len for whole the number or string
|
||||
len1: len1_set // number of decimal digits, if needed
|
||||
positive: true // mandatory: the sign of the number passed
|
||||
sign_flag: sign_set // flag for print sign as prefix in padding
|
||||
align: .left // alignment of the string
|
||||
pad_ch: pad_ch // padding char
|
||||
len0: len0_set // default len for whole the number or string
|
||||
len1: len1_set // number of decimal digits, if needed
|
||||
positive: true // mandatory: the sign of the number passed
|
||||
sign_flag: sign_set // flag for print sign as prefix in padding
|
||||
align: .left // alignment of the string
|
||||
rm_tail_zero: tail_zeros // false // remove the tail zeros from floats
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue