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

Post here questions and problems related to editing and publishing DITA content.
Shative
Posts: 1
Joined: Wed Oct 16, 2024 11:36 am
Location: https://geometrydashs.io

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

Post 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
julien_lacour
Posts: 678
Joined: Wed Oct 16, 2019 3:47 pm

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

Post 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
Post Reply