I've noticed than when using unordered lists (ul), the last list item (li) is broken out into it's own ul

input:

* List item one
* List item 2
* List item three

output:

<ul>
<li>List item one</li>
<li>List item 2</li>
</ul>
<ul>
<li>List item three</li>
</ul>

I have the latest textile lib installed.

Comments

znerol’s picture

I fixed this issue by replacing classTextile.php with the development version from textpattern-cms:
http://textpattern-cms.googlecode.com/svn/development/4.0/textpattern/li...

See also:
http://leapon.net/en/salvation-textile-drupal-module#comment-2238

cdemetriadis’s picture

Didn't fix much. problem insists.

Have a look here http://www.joblet.gr/job/340

znerol’s picture

@cdemetriadis: You have to resave the affected nodes (go to edit tab, scroll down, press save)

niklp’s picture

This worked for me with the classTextile from TXP 4.0.6

Further to that, you should clear your cache - I had troubles with the "node save" technique, whereas clearing cache worked for me. You can do this in phpMyAdmin, or use the Devel module for this.

cvk’s picture

The behaviour of the next() function changed in PHP 5.2.4. The array cursor is set to the next element in the beginning of the block, so calling next() returns the next line but one. So you can either change line 473 in classTextile.php to use "current()" instead of "next()", or just apply this little patch that works in any version:

472,473c472,473
< foreach($text as $line) {
< $nextline = next($line);
---
> foreach($text as $num => $line) {
> $nextline = isset($text[$num+1]) ? $text[$num+1] : false;

Regards
Chris

trevortwining’s picture

Component: Miscellaneous » Documentation
Assigned: Unassigned » trevortwining
Status: Active » Closed (won't fix)

Agreed, downloading the most recent stable version of classTextile.php from the textpattern repository and clearing the cache seems to resolve the issue.

Frosty1’s picture

@ Chris

Thanks a lot for that textile patch. it was driving me loony.