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 indent as document attribute #1169

Closed
lordofthejars opened this issue Oct 29, 2014 · 3 comments
Closed

Add indent as document attribute #1169

lordofthejars opened this issue Oct 29, 2014 · 3 comments
Assignees
Milestone

Comments

@lordofthejars
Copy link
Member

:source-language: java is used to set globally to all document the default language on code blocks, I think it may be useful as well to have indent attribute as document attribute so you can set as default the indent of all your code blocks.

Something like :source-indent: 0

@mojavelinux
Copy link
Member

I think this is reasonable. This would set at default for the indent attribute on source blocks, correct?

@mojavelinux
Copy link
Member

I didn't mean to click on the wontfix label. That was the result of a touchpad gone wild ;)

@lordofthejars
Copy link
Member Author

Exactly, works pretty same like :source-language but for indent attribute.

ggrossetie added a commit to ggrossetie/asciidoctor that referenced this issue Dec 12, 2014
@mojavelinux mojavelinux removed the wip label Dec 20, 2014
ggrossetie added a commit to ggrossetie/asciidoctor that referenced this issue May 23, 2015
- add source-indent as document attribute for source blocks
- don't reset indent if value is -1
- minor optimizations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants