We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e739d62 commit b7c0232Copy full SHA for b7c0232
lib/syntax_tree/node.rb
@@ -2297,7 +2297,15 @@ def format(q)
2297
q.format(message) if message != :call
2298
end
2299
2300
- q.format(arguments) if arguments
+ case arguments
2301
+ in ArgParen
2302
+ q.format(arguments)
2303
+ in Args
2304
+ q.text(" ")
2305
2306
+ else
2307
+ # Do nothing if there are no arguments.
2308
+ end
2309
2310
2311
lib/syntax_tree/prettyprint.rb
@@ -1020,6 +1020,7 @@ def if_break
1020
# to build the break contents.
1021
def if_flat
1022
doc = IfBreak.new
1023
+ target << doc
1024
1025
with_target(doc.flat_contents) { yield }
1026
0 commit comments