Closed (won't fix)
Project:
Textile
Version:
5.x-2.1
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
13 May 2008 at 09:18 UTC
Updated:
21 Nov 2008 at 03:58 UTC
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
Comment #1
znerol commentedI 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
Comment #2
cdemetriadis commentedDidn't fix much. problem insists.
Have a look here http://www.joblet.gr/job/340
Comment #3
znerol commented@cdemetriadis: You have to resave the affected nodes (go to edit tab, scroll down, press save)
Comment #4
niklp commentedThis 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.
Comment #5
cvk commentedThe 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
Comment #6
trevortwining commentedAgreed, downloading the most recent stable version of classTextile.php from the textpattern repository and clearing the cache seems to resolve the issue.
Comment #7
Frosty1 commented@ Chris
Thanks a lot for that textile patch. it was driving me loony.