Page 1 of 1

When I enter a tab, and transform the document into a PDF, the tabs are replaced with spaces.

Posted: Wed Oct 16, 2024 11:38 am
by Shative
Hello everyone,

I am working with Oxygen Author to write Dita content.
I am trying to write a content with a codeblock element. The code contains tabs which must be displayed as tabs in order for the users to copy and paste the code.
My problem is: When I enter a tab, and transform the document into a PDF, the tabs are replaced with spaces.
I tried: Using the attribute outputclass in the codeblock element with tab-width-O, using the pre element instead with the same attribute, typing the code in Sublime text and copypaste it in Oxygen, the author view displays the tabs but it turns into spaces when transformed to PDF.

Do you have a solution to keep the tabs in codeblock element when transforming to PDF ?
If it is not the right place to ask, please let me know if you use other platforms that might help.

Thank you in advance.

Cindy

Re: When I enter a tab, and transform the document into a PDF, the tabs are replaced with spaces.

Posted: Wed Oct 16, 2024 4:14 pm
by julien_lacour
Hello Cindy,

Could you indicate which version of Oxygen you are using and if you are running the DITA Map PDF - based on HTML5 & CSS scenario (or a scenario based on it)?

Regards,
Julien