Skip to content

Fails: styler::style_text("a = 1; b = c = 1") #403

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
maurolepore opened this issue Jul 6, 2018 · 1 comment
Closed

Fails: styler::style_text("a = 1; b = c = 1") #403

maurolepore opened this issue Jul 6, 2018 · 1 comment

Comments

@maurolepore
Copy link

Is this behaviour expected ?

# Fails
styler::style_text("a = 1; b = c = 1")
#> Error in if (any(pd_flat$spaces < 0L)) {: missing value where TRUE/FALSE needed
# Passes
styler::style_text("b = c = 1")
#> b <- c <- 1

Created on 2018-07-06 by the reprex package (v0.2.0.9000).

@lorenzwalthert
Copy link
Collaborator

No this should definitively not happen. Thanks for reporting, will look into it.

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