Donate Share

PhpDocumentor

Tracker: Bugs

5 listitem conversion does not work for variablelist - ID: 2074182
Last Update: Comment added ( epaul )

The following docbook-code, using <variablelist> in a tutorial file, does
not get converted to a HTML definition list, as I hoped, but to simple text
lines with <li> elements between them.

<variablelist>
<varlistentry><term>filename</term>
<listitem>Text about filename
</listitem>
</varlistentry>
<varlistentry><term>another filename</term>
<listitem>and some more text.</listitem>
</varlistentry>
</variablelist>

(Full example as a file attachment.)

And there seems to be no way to achieve this with a change in options.ini,
without destroying ordered or itemized lists.

I used Smarty/HandS, but I suppose the same problem is there for all
Converters.

For the title tag there is some special case code in the class Converter -
maybe something similar should be added for the <listitem>-tag, which
sometimes should be converted to <dd>, sometimes to <li> - or even better,
a more general useable mechanism.

(I had a HTML formatted definition list (<dl>), which I converted to
docbook to integrate the documentation with PhpDocumentor.)


Paul Ebermann ( epaul ) - 2008-08-25 19:13

5

Open

None

Nobody/Anonymous

Converter

1.4.1

Public


Comment ( 1 )




Date: 2008-08-25 19:20
Sender: epaul


The tracker seems not to accept my attachment ... so, here the full
example for copy&paste:
-----
<?xml version='1.0' encoding="utf-8" ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<refentry id="{@id}">
<refnamediv>
<refname>Example</refname>
<refpurpose>for the bugreport</refpurpose>
</refnamediv>
<refsynopsisdiv>
<author>
Paul Ebermann
</author>
</refsynopsisdiv>
<refsect1 id="{@id intro}">
<title>Example</title>
<variablelist>
<varlistentry><term>filename</term>
<listitem>Text about filename
</listitem>
</varlistentry>
<varlistentry><term>another filename</term>
<listitem>and some more text.</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
-----


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.