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

indentation problem? #11

Open
jonathan-taylor opened this issue Sep 5, 2019 · 3 comments
Open

indentation problem? #11

jonathan-taylor opened this issue Sep 5, 2019 · 3 comments

Comments

@jonathan-taylor
Copy link

With ":format: python" the rendered rst available to sphinx seems to have indent inconsistency.

Search for IndentationError here: https://travis-ci.org/jonathan-taylor/regreg/jobs/581371183#L1864

Raw file is here: https://raw.githubusercontent.com/jonathan-taylor/regreg/master/doc/source/examples/LASSO.rst

@jonathan-taylor
Copy link
Author

It seems sphinx directives by default assume 3 spaces? Is that correct? If so, then maybe the .. code-block:: should also only include 3 spaces?

@matthew-brett
Copy link
Owner

I'm pretty sure the rule is only that the indentation has to match - like Python.

In your file, the directive text should be at the same indentation as :format: ... I think it's one extra space indented.

@jonathan-taylor
Copy link
Author

Got it, that did occur to me as well. Will try that.

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