Last number in autonumbering is always 1

nsummy - December 19, 2008 - 20:36
Project:Textile
Version:6.x-2.0
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

We are using the auto numbering feature where you put the "#" in front of every list item. For some reason the last entry on every list is the number 1. Any idea what would cause this?

#1

Schneck - February 2, 2009 - 08:16
Version:5.x-2.1» 6.x-2.0

Same for unordered lists: the last list item is always surrounded by a separate list.

#2

Andrew Schulman - March 12, 2009 - 10:07

This is a problem, and it appears to be the same as http://drupal.org/node/392412. It's an upstream bug in Textile: At http://textism.com/tools/textile/index.php, if you run the sample text through, specifically the part that has

* Point one
* Point two
## Step 1
## Step 2
## Step 3
* Point three
** Sub point 1
** Sub point 2

then you'll see it's broken there too.

#3

Andrew Schulman - March 12, 2009 - 10:54

Interestingly, the converter at http://textile.thresholdstate.com/ gets the above code right, but the textile-2.0.0.tar.gz that I downloaded from there gets it wrong. ??

#4

Andrew Schulman - March 13, 2009 - 20:18

This problem is fixed in the version of classTextile.php found in Textpattern 4.0.8, available at http://textpattern.com/download. That file is dated 2008-02-05, in contrast to the version distributed in textile-2.0.0 which is dated 2006-10-17. A diff between the two shows that the fList() function has been fixed to take care of this problem.

As of right now, the sample text above:

I've notified the proprietors of both sites about this problem, but so far they haven't seen fit to fix it.

Happy texting.
Andrew.

#5

nsummy - March 15, 2009 - 08:10

You were right. Thanks Andrew!

#6

nsummy - March 15, 2009 - 08:10
Status:active» fixed

#7

Andrew Schulman - March 15, 2009 - 23:35
Status:fixed» active

I don't think this issue should be marked fixed, until the version of classTextile.php that people are directed to download from upstream doesn't have the problem.

 
 

Drupal is a registered trademark of Dries Buytaert.