Repeated list wrapper tags for last element of list

mathieso - July 15, 2009 - 23:40
Project:Textile
Version:6.x-2.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

This:

* 1
* 2
* 3

generates:

<ul>
<li>1</li>
<li>2</li>
</ul>
<ul>
<li>3</li>
</ul>

(In recent version of PHP.) The extra <ul> is Evil. See http://forum.textpattern.com/viewtopic.php?pid=157427#p157427 for details in the Texpattern forum.

The attached patch takes care of it.

(I've never submitted a patch before, so I'm not sure I did it right.)

AttachmentSize
fix_list_wrapper.patch617 bytes

#1

BlakeLucchesi - September 12, 2009 - 08:30

confirmed working.

 
 

Drupal is a registered trademark of Dries Buytaert.