Edgewall Software
Modify

Opened 11 years ago

Last modified 4 years ago

#7721 new enhancement

Allow cascaded definition lists

Reported by: martin@… Owned by:
Priority: normal Milestone: topic-wikiengine
Component: wiki system Version:
Severity: minor Keywords: definition list
Cc: Branch:
Release Notes:
API Changes:

Description

The definition list TracWiki syntax " name::" doesn't work eh n cascaded:

 name::
   sub-name1:: some text
   sub-name2:: some text

produces:

<dl>
 <dt>name</dt>
 <dd></dd>
 <dt>sub-name1</dt>
 <dd>some text</dd>
 <dt>sub-name2</dt>
 <dd>some text</dd>
<dl>

but should actually produce:

<dl>
 <dt>name</dt>
 <dd>
  <dl>
   <dt>sub-name1</dt>
   <dd>some text</dd>
   <dt>sub-name2</dt>
   <dd>some text</dd>
  </dl>
 </dd>
<dl>

This should be valid XHTML because the <dd> tag may include other block tags.

The same doesn't work in other lists, e.g.:

 * list
    definition::

is handled like:

 * list
 definition::

Attachments (0)

Change History (6)

comment:1 by Remy Blank, 11 years ago

Milestone: 2.0
Summary: Definition Lists are not cascadeableAllow cascaded definition lists
Type: defectenhancement

comment:2 by Christian Boos, 9 years ago

Milestone: 2.00.13
Owner: set to Christian Boos

comment:3 by Christian Boos, 8 years ago

Milestone: 0.130.14-wikiengine

comment:4 by lkraav <leho@…>, 5 years ago

Is this the same as multiple data definitions not working as of 1.1.2b1?

 something::
  is this
  also is something else

produces

<dl class="wiki">
  <dt>something</dt>
  <dd>
    is this
    also is something else
  </dd>
</dl>

it should be outputting

<dl class="wiki">
  <dt>something</dt>
  <dd>is this</dd>
  <dd>also is something else</dd>
</dl>
Last edited 5 years ago by Jun Omae (previous) (diff)

in reply to:  4 comment:5 by Jun Omae, 5 years ago

Is this the same as multiple data definitions not working as of 1.1.2b1?

No. That is not a defect. See source:tags/trac-1.0.1/trac/wiki/tests/wiki-tests.txt@:1710-1712,1714-1717#L1709

Last edited 5 years ago by Jun Omae (previous) (diff)

comment:6 by Ryan J Ollos, 4 years ago

Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.