codeblock inside example

21 views
Skip to first unread message

Ron Wheeler

unread,
Nov 10, 2016, 10:13:11 AM11/10/16
to DITA-OT Users


It seems that DITA-OT does not indent codeblocks that are inside example tags for PDF output.
It draws an indented box around the example text
The codeblock is not indented so that it fits inside the example box but is indented to fit inside the taskbody margins.
The left line of the example box runs through the code.

DITA has this structure

taskbody
   context
    p
     Properties can be set by reading property files or by a task that explicitly....
    /p
  /context
    example
      p
            This example.....
      /p
      p
        codeblock
             Some code
        /codeblock
      /p
    /example
/taskbody

Ron Wheeler

unread,
Nov 10, 2016, 11:43:48 AM11/10/16
to DITA-OT Users
It was caused by my customization of the codeblock stye with a specific start-indent specified.
I removed the start-indent attribute in my customization and the respect for the example box indent was restored with my other customizations respected.

Sorry for the noise.
Reply all
Reply to author
Forward
0 new messages