Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello,
I am working on an APP stylesheet in Styler 8.1.2. The XML (Docbook) contains some simple ordered and itemized lists - when I preview or publish to PDF, long lines which wrap are causing the entire sentence to drop down by one line relative to the item.
The code that produces the above is as follows:
<orderedlist>
<listitem>
<para><?Pub _font Posture="italic"?>Line 1<?Pub /_font?></para>
</listitem>
<listitem>
<para>Line 2. Form 6377, VHP Series Four P9394GSI with ESM Operation
& Maintenance Manual (previous production engines)</para>
</listitem>
</orderedlist><itemizedlist>
<listitem>
<para><?Pub _font Posture="italic"?>Line 1<?Pub /_font?></para>
</listitem>
<listitem>
<para>Line 1 & 2. Form 6377, VHP Series Four</para>
</listitem>
</itemizedlist><itemizedlist>
<listitem>
<para>Form 6377, VHP Series Four P9394GSI with ESM Operation &
Maintenance Manual (previous production engines)</para>
</listitem>
<listitem>
<para>Form 6398, VHP Series Four P9394GSI with AFR2/emPact Emissions
Control System Operation & Maintenance Manual (current production
engines)</para>
</listitem>
</itemizedlist>
None of the changes I make to the elements in Styler make any difference to the output.
Does anyone have any idea what might be causing this, and a way to fix this problem?
Many thanks in advance
John
Solved! Go to Solution.
Hi John
A little late the party here but have just seen your responce...
Yes you might want to check if the para within a list item context is a block type as well as the listitem itself so you dont get block line breaks in a row. It depends on the data model if listitem will always have one or more para's or can also contain text. It might need some additional test or conditions around it.
Thanks
Chris
Hi John
From the mark-up I suspect you might want to add a "within listitem" context applied on the para without a block/para start being triggered.
Regards
Chris
tformat Publishing Solutions
Hi Chris,
I have this in Styler:
Is this what you mean? I am still relatively new to this.
Many thanks!
John
Hi John
A little late the party here but have just seen your responce...
Yes you might want to check if the para within a list item context is a block type as well as the listitem itself so you dont get block line breaks in a row. It depends on the data model if listitem will always have one or more para's or can also contain text. It might need some additional test or conditions around it.
Thanks
Chris
Hi Chris,
Apologies for the delay - work has been busy.
That seemed to do the trick, so thank you!
All the best,
John