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?

Comments

Schneck’s picture

Version: 5.x-2.1 » 6.x-2.0

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

Andrew Schulman’s picture

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.

Andrew Schulman’s picture

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. ??

Andrew Schulman’s picture

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.

nsummy’s picture

You were right. Thanks Andrew!

nsummy’s picture

Status: Active » Fixed
Andrew Schulman’s picture

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.

sawtelle’s picture

Status: Active » Fixed

Created "INSTALL.txt points to out-of-date classTextile.php sources" http://drupal.org/node/802320 so that the multiplicity of issues caused by that problem may be set to status:fixed and eventually close.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.