Skip to content

Multiline function definition without brace #193

Closed

Description

@krlmlr
styler::style_text("function()\nNULL")
#> function()
#> NULL

The NULL should be indented at least, maybe it should even receive braces or be moved one line up.

Activity

  1. lorenzwalthert commented on Sep 16, 2017

    @lorenzwalthert
    Collaborator

    I think moving one line up would be the simplest but maybe the function was intentionally put on a new line, e.g. if not everything does fit all on one line.

  2. lorenzwalthert commented on Sep 16, 2017

    @lorenzwalthert
    Collaborator

    Similar to #191 as far as adding braces goes.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions