-
Notifications
You must be signed in to change notification settings - Fork 500
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
Source code blocks are rendered without indentation in versions 1.5.0.beta.3 and 1.5.0.beta.4 #1258
Comments
It looks like the tab processing broke. Sigh. It has been a game of whack-a-mole to get this logic stabilized. I'll take a look. It just means we need more tests. |
Can you tell me which version of Asciidoctor core you're using?
(That matters since Asciidoctor PDF uses Asciidoctor). |
Thank you for the quick response.
I think it is a problem with |
As a workaround, you can set the tabsize attribute on the document, which activates the same logic as before.
(You could also set it from the API or CLI). |
Yes, I know the problem is with Asciidoctor PDF. I had made the assumption that core always replaces tabs, but that's not always true. And tabs must always be replaced in the PDF since PDF doesn't support tabs. |
…atim blocks when tabsize is not set
…atim blocks when tabsize is not set
Source code blocks, such as this one:
are rendered without indentation.
This is the rendered output:
It worked fine with 1.5.0.beta.2 and earlier versions, but is broken in 1.5.0.beta.3 and 1.5.0.beta.4.
My document is available in this repository, so you can take a look at it as an example. It can be compiled with
make
command.The text was updated successfully, but these errors were encountered: