resolves #1169 - add source-indent as document attribute

- add source-indent as document attribute for source blocks
- don't reset indent if value is -1
- minor optimizations