NOTE This PR would probably be better served by introducing a dangle-parens-mode to select the precise behaviour, but for now this offers a fix for currently-inconsistent behaviour.
The dangle-parens configuration option is currently ignored when the children of a statement cannot accommodate space for the end parentheses, which can cause undesirable dangling. This occurs particularly frequently in largely indented statements utilising generate expressions, which can often necessarily overflow the column limit:
NOTE This PR would probably be better served by introducing a
dangle-parens-mode
to select the precise behaviour, but for now this offers a fix for currently-inconsistent behaviour.The
dangle-parens
configuration option is currently ignored when the children of a statement cannot accommodate space for the end parentheses, which can cause undesirable dangling. This occurs particularly frequently in largely indented statements utilising generate expressions, which can often necessarily overflow the column limit:Which, regardless of the value of
dangle-parens
, currently becomes: