Skip to content

add PrettyPrint::SingleLine#group_sub for compatibility#13

Open
notEthan wants to merge 1 commit intoruby:masterfrom
notEthan:pretty_print_single_line_group_sub
Open

add PrettyPrint::SingleLine#group_sub for compatibility#13
notEthan wants to merge 1 commit intoruby:masterfrom
notEthan:pretty_print_single_line_group_sub

Conversation

@notEthan
Copy link

My #pretty_print methods use #group_sub but this breaks when passed the SingleLine printer. Since group_sub deals with nesting and breaking, for single-line it does not need to do anything but yield, and is a simple fix for compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant