In a task topic, space between step number and text not consistent

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
dev
Posts: 3
Joined: Thu Jul 04, 2019 10:28 am

In a task topic, space between step number and text not consistent

Post by dev »

Hi,

When I generate a PDF output using a scenario based on XSL-FO, the space in between the step number and the text is less when the step number is 10 or above. It looks very odd. It looks fine for steps 1 through 9. Please see the attached screenshot.
oxygen_problem.PNG
oxygen_problem.PNG (88.39 KiB) Viewed 2208 times
Do you have any idea how to resolve this or this is a known issue?

Thank you!

Regards,
Dev
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: In a task topic, space between step number and text not consistent

Post by Radu »

Hi,

This looks like a small bug in the publishing engine. I added an issue for this on the DITA OT issues list:

https://github.com/dita-ot/dita-ot/issues/3335

In the XSLT stylesheet OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/org.dita.pdf2/cfg/fo/attrs/task-elements-attr.xsl there should be an attribute set looking like this:

Code: Select all

    <xsl:attribute-set name="steps.step" use-attribute-sets="ol.li">
        <xsl:attribute name="space-after">3pt</xsl:attribute>
        <xsl:attribute name="space-before">3pt</xsl:attribute>
    </xsl:attribute-set>
You can probably try to increase its space-after value and also add an extra attribute to align the counter values left:

Code: Select all

   <xsl:attribute name="end-indent">label-end()</xsl:attribute>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
dev
Posts: 3
Joined: Thu Jul 04, 2019 10:28 am

Re: In a task topic, space between step number and text not consistent

Post by dev »

Thank you, Radu, for your response. My problem is resolved.

I followed the steps provided in the following link:

https://github.com/dita-ot/dita-ot/issu ... -508734682

Regards,
Dev
Post Reply