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.
-
- 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.
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
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
-
- 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
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
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service