Skip to content
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

Placement of and/or is wrong if ands/ors are misplaced #79

Closed
metthal opened this issue Mar 12, 2020 · 1 comment
Closed

Placement of and/or is wrong if ands/ors are misplaced #79

metthal opened this issue Mar 12, 2020 · 1 comment

Comments

@metthal
Copy link
Member

metthal commented Mar 12, 2020

Current autoformatter expects that and and ors are placed in a certain way in order to autoformat newlines around them. This is expected format

A and
B and
C and
...

but that only works if you write A and B and C or you specify it in that expected format. If you however write this

A
and B
and C

you'll end up with

A
and
B
and
C

What is not expected. Please take a look at why it happens and try to come up with a solution that would generally handle any kind of whitespace shenanigans around ands and ors. Thank you.

metthal pushed a commit that referenced this issue Mar 25, 2020
* Remove new line before and/or

* Erase ALL newlines that are directly before and/or conjunctions

Co-authored-by: Tadeáš Kučera <tadeas.kucera@avast.com>
@TadeasKucera
Copy link
Contributor

Solved in #89

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