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

Spaces are inserted for indent in Python docstring when the previous indents are tabs. #15

Open
davidselassie opened this issue Dec 29, 2012 · 1 comment

Comments

@davidselassie
Copy link

In my Python docstrings, if I start with

before

Then select this line

selection

and wrap, I get

after

Since the rest of the indentation is using tabs, it'd be nice to have that extra level also be tabs. I know spaces make sense when aligning with bullet points, but these extra indentations aren't lined up with anything in the first line.

@ehuss
Copy link
Owner

ehuss commented May 29, 2013

A minor complexity for implementing this is that _extract_prefix would need to compute tab stops to determine the proper number of tabs and spaces to insert. That's not very difficult, but the function is already quite hairy.

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

2 participants