Login  Register

Re: Code block justification

Posted by Alexander Schwartz on Sep 08, 2019; 11:37am
URL: https://discuss.asciidoctor.org/Code-block-justification-tp7141p7142.html

Hi Marco,

there is the indent option for the source block that allows you to normalize the indent. You can even specify the tab size. https://asciidoctor.org/docs/user-manual/#normalize-block-indentation

[source,ruby,indent=0]
----
include::file.rb[tags=init]
----

I assume this is what you have been looking for.

Cheers, Alexander

Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de