wrap_else_multiline_curly: Add curly braces to else

View source: R/rules-tokens.R

wrap_else_multiline_curlyR Documentation

Add curly braces to else

Description

Wrap the else part of a conditional expression into curly braces if not already wrapped into a such.

Usage

wrap_else_multiline_curly(pd, indent_by = 2L, space_after = 0L)

Arguments

pd

A parse table.

indent_by

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

space_after

How many spaces should be inserted after the closing brace.


krlmlr/styler documentation built on April 8, 2024, 7:53 p.m.