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

Extra \n when parsing classes #165

Open
Osso opened this issue Oct 22, 2020 · 0 comments
Open

Extra \n when parsing classes #165

Osso opened this issue Oct 22, 2020 · 0 comments

Comments

@Osso
Copy link

Osso commented Oct 22, 2020

I am getting an extra \n when parsing a class definition:

`In [61]: baron.parse("class C:\n pass")

Out[61]:
[{'decorators': [],
'fifth_formatting': [],
'first_formatting': [{'type': 'space', 'value': ' '}],
'fourth_formatting': [],
'inherit_from': [],
'name': 'C',
'parenthesis': False,
'second_formatting': [],
'sixth_formatting': [],
'third_formatting': [],
'type': 'class',
'value': [{'formatting': [],
'indent': ' ',
'type': 'endl',
'value': '\n'},
{'type': 'pass'},
{'formatting': [], 'indent': '', 'type': 'endl', 'value': '\n'}]}]
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant