We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51a5aa5 commit 85d040dCopy full SHA for 85d040d
cmakelists_parsing/parsing.py
@@ -79,7 +79,8 @@ def compose_lines(tree):
79
level += 1
80
81
# FIXME: Make this split into more lines if the result would be too wide.
82
-def command_to_lines(cmd, sep=' '):
+def command_to_lines(cmd):
83
+ sep = ' '
84
final_paren = ')' if cmd.body and cmd.body[-1].comments else ')'
85
comment_part = ' ' + cmd.comment if cmd.comment else ''
86
result = cmd.name + '(' + sep.join(map(arg_to_str, cmd.body)) + final_paren + comment_part
0 commit comments