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

Add ability to control tab-size #15

Open
gabrielflorit opened this issue Feb 7, 2017 · 1 comment
Open

Add ability to control tab-size #15

gabrielflorit opened this issue Feb 7, 2017 · 1 comment

Comments

@gabrielflorit
Copy link

gabrielflorit commented Feb 7, 2017

For some inexplicable reason browsers render pre tab sizes with 8 spaces (8!). I'd personally like to set this to 2, e.g.

pre {
  -moz-tab-size: 2;
  tab-size: 2;
}

but I'm sure others will prefer 4. What do you think is the best way to handle this? User config in indoc.json?

@zlsa
Copy link
Owner

zlsa commented Feb 16, 2017

With the way the code is laid out, it's inherently impossible to copy more than a few lines of code. I think the cleanest solution is to convert tabs to spaces during processing; and yeah, a line in indoc.json seems to make the most sense.

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