styler (version 1.0.9000)

wrap_if_else_multi_line_in_curly: Wrap if-else statement in curly braces

Description

Wrap an if-else statement in curly braces if it is not already wrapped in a such.

Usage

wrap_if_else_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.