Pages: 1
Print
Author Topic: WebHelp: Extra line break added before lists  (Read 2122 times)
jlm05
Member

Posts: 79


« on: April 19, 2012, 07:55:48 AM »

I'm starting to experiment with the WebHelp output.

I've noticed that for lists, the output adds an extra <br /> before the list.

So it ends up something like:

<p>Paragraph:</p>
<br />
<ul>
<li>First list item.</li>

Is there a way to get this to stop happening? With the extra line break there is too much of a gap between the paragraph and the list.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: April 19, 2012, 05:27:21 PM »

There are two options I can think of:

1) Create some CSS that suppresses elements you do not want to see (using the CSS property display:none), or changes their styling (height, margin, padding, etc) some other way.

2) Modify the XSLT that generates the XHTML. I believe the main file that does most of the work is here:

You will need to find the template that builds the <ul> to modify it. Most likely it will be in something like <xsl:template match="...">
where the "..." is trying to match on a class attribute of "topic/ul". Hopefully somewhere in there you can spot a <br/>.
Logged
Pages: 1
Print
Jump to: