mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: fix rare extra tab after a SumType (#8035)
This commit is contained in:
parent
72317975fc
commit
5d6e9f7bf9
@ -28,7 +28,6 @@ pub type ScopeObject = ConstField | GlobalField | Var
|
||||
// TOOD: replace table.Param
|
||||
pub type Node = ConstField | EnumField | Expr | Field | File | GlobalField | IfBranch |
|
||||
MatchBranch | ScopeObject | SelectBranch | Stmt | StructField | StructInitField | table.Param
|
||||
|
||||
|
||||
pub struct Type {
|
||||
pub:
|
||||
|
@ -574,7 +574,9 @@ pub fn (mut f Fmt) type_decl(node ast.TypeDecl) {
|
||||
if i < sum_type_names.len - 1 {
|
||||
f.write(' | ')
|
||||
}
|
||||
f.wrap_long_line(2, true)
|
||||
if i < sum_type_names.len - 1 {
|
||||
f.wrap_long_line(2, true)
|
||||
}
|
||||
}
|
||||
// f.write(sum_type_names.join(' | '))
|
||||
comments << node.comments
|
||||
|
Loading…
Reference in New Issue
Block a user