Skip to content

Multiline function definition without brace #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
krlmlr opened this issue Sep 16, 2017 · 2 comments
Closed

Multiline function definition without brace #193

krlmlr opened this issue Sep 16, 2017 · 2 comments

Comments

@krlmlr
Copy link
Member

krlmlr commented Sep 16, 2017

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.

@lorenzwalthert
Copy link
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.

@lorenzwalthert
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants