styler (version 1.1.1)

wrap_if_else_while_for_multi_line_in_curly: Wrap if-else, while and for statements in curly braces

Description

Wrap statements in curly braces if it is not already wrapped in a such.

Usage

wrap_if_else_while_for_multi_line_in_curly(pd, indent_by = 2)

Arguments

pd

A parse table.

indent_by

The amount of spaces used to indent an expression in curly braces. Used for unindention.