cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Listitem Lines Wrapping - Changes Spacing

JohnLaidlaw
10-Marble

Listitem Lines Wrapping - Changes Spacing

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.

JL_9824280_0-1649706516782.png

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
&amp; 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 &amp; 2. Form 6377, VHP Series Four</para>
</listitem>
</itemizedlist><itemizedlist>
<listitem>
<para>Form 6377, VHP Series Four P9394GSI with ESM Operation &amp;
Maintenance Manual (previous production engines)</para>
</listitem>
<listitem>
<para>Form 6398, VHP Series Four P9394GSI with AFR2/emPact Emissions
Control System Operation &amp; 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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

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

www.arbortext.solutions

 

Hi Chris,

 

I have this in Styler:

JL_9824280_0-1649709053521.png

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

Top Tags