Page 1 of 1

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

Posted: Fri Jul 05, 2019 12:32 pm
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 2176 times
Do you have any idea how to resolve this or this is a known issue?

Thank you!

Regards,
Dev

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

Posted: Fri Jul 05, 2019 1:54 pm
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

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

Posted: Mon Jul 08, 2019 11:52 am
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