@@ -109,7 +109,7 @@ def split_rval_list(node, indent, args):
109109 first = text (node .children [0 ])
110110 last = " " * indent + text (node .children [- 1 ])
111111 middle = node .children [1 :- 1 ]
112- elements = maybe_split_generic_list (middle , indent + 2 , args )
112+ elements = maybe_split_generic_list (middle , indent + args . indent , args )
113113 return [first , * elements , last ]
114114
115115
@@ -120,7 +120,7 @@ def split_rval_call(node, indent, args):
120120 first = text (node .children [0 ]) + "("
121121 last = " " * indent + text (node .children [- 1 ])
122122 middle = node .children [2 :- 1 ]
123- elements = maybe_split_generic_list (middle , indent + 2 , args )
123+ elements = maybe_split_generic_list (middle , indent + args . indent , args )
124124 return [first , * elements , last ]
125125
126126
@@ -188,7 +188,7 @@ def autoformat(node, fmt, args, macro_indent, indent=0):
188188 "promise" ,
189189 "attribute" ,
190190 ]:
191- indent += 2
191+ indent += args . indent
192192 if node .type == "attribute" :
193193 lines = stringify (node , indent , args )
194194 fmt .print_lines (lines , indent = 0 )
0 commit comments