We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Textile: Last li breaking into separate ul

Development and Programming

rockthenroll's avatar
rockthenroll
485 posts
17 years ago
rockthenroll's avatar rockthenroll

I ran into this issue with the lastest version of Textpattern as well.

The solution was to update to a newer version/revision of Textile to accomodate a bug that came up with PHP5. With any number of lis the last item breaks to its own ul.

Example:

<ul><li>Item One</li><li>Item Two</li><li>Item Three</li></ul><ul><li>Item Four</li></ul>

I have the lastest Textile version from the Add-on library - any ideas?

       
rockthenroll's avatar
rockthenroll
485 posts
17 years ago
rockthenroll's avatar rockthenroll

Just found this Textile revision that works for EE too (guess it doesn’t matter on the system). I’m no programmer so I wasn’t sure what it would affect, but it worked.

http://dev.textpattern.com/changeset/2640

Anyway, how do I submit this as a plugin revision?

       
Derek Jones's avatar
Derek Jones
7,561 posts
17 years ago
Derek Jones's avatar Derek Jones

Travis, I subscribe to the feed for TextPattern’s SVN log for the Textile class, and try to use it as a general gauge as to when to update the plugin. Only after many changes, or critical ones, do I update the plugin, as keeping up with each SVN revision they make would be too time consuming. This particular bug affects easily fewer than 5% of our users (probably less than 1% as it would only affect Textile users and of those, just PHP 5.2.4 that is affected), so I didn’t see it as critical. Considering that, with our current internal development schedule, this is fairly low in priority.

I appreciate the heads up on issues, though. You can feel free to post to this forum when you feel an add-on needs a bug fix, or even email me directly.

       
rockthenroll's avatar
rockthenroll
485 posts
17 years ago
rockthenroll's avatar rockthenroll

Understandable and thanks for the reply. At least I might be able to help steer that 1% if they find this post! Thanks again.

       
imagehat's avatar
imagehat
68 posts
17 years ago
imagehat's avatar imagehat

Travis, thanks very much for the link to Textile’s bug report - I was able to patch my plugin after discovering this issue on an install today and finding this thread. Steering me in the right direction indeed, many many thanks!

       
timkelty's avatar
timkelty
177 posts
17 years ago
timkelty's avatar timkelty

Travis, You’re awesome, thanks a ton for figuring this one out!

       
Greg Salt's avatar
Greg Salt
3,988 posts
17 years ago
Greg Salt's avatar Greg Salt

Hi,

A little while ago I updated the Textile plugin to r2670. You may find it of use and it is in this thread.

Cheers

Dry

       
Jim Pannell's avatar
Jim Pannell
187 posts
16 years ago
Jim Pannell's avatar Jim Pannell

Hi there

I’m still having problems with this unfortunately. ‘Downgrading’ textile with the version recommended in this thread didn’t make any difference unfortunately.

With more people using php5 now, has anyone found a fix for this?

Cheers

Jim

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Jim, what version of the Textile plugin are you using? If memory serves, this was fixed quite some time ago.

       
Jim Pannell's avatar
Jim Pannell
187 posts
16 years ago
Jim Pannell's avatar Jim Pannell

Thanks for getting back to me. I’m using Textile (v.1.1.1 (2.0.0 r2779)) at the moment. All was fine until I recently moved to a server with PHP 5.2.6 installed.

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

I’m not duplicating, Jim, can you give me the full text you’re using as well as the context (entry with Textile formatting applied, or Textile plugin tag in a template, etc.)

       
Jim Pannell's avatar
Jim Pannell
187 posts
16 years ago
Jim Pannell's avatar Jim Pannell

Hi Derek

I’ve set up a custom field and set the formatting to ‘Textile’.

The markup I’m using in the entry is:

* Link 1
* Link 2
* Link 3

and what is being produced is:

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

In my template I’m simply using:

{homepage_lower-links}

sandwiched between a weblog entries tag.

Hope that helps.

Jim

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Indeed it does, thank you, but on both PHP 5.2.5 and PHP 5.2.6, I am still not experiencing this issue, as again, it was fixed in TextPattern’s repo quite some time ago, and that fix made it into our Textile plugin. I wonder if your server is perhaps using a cached version of pi.textile.php? Is this on a professionally hosted environment or a local development machine?

       
Jim Pannell's avatar
Jim Pannell
187 posts
16 years ago
Jim Pannell's avatar Jim Pannell
I wonder if your server is perhaps using a cached version of pi.textile.php? Is this on a professionally hosted environment or a local development machine?

It’s on a professionally hosted Linux server running cPanel. I’m a bit stumped unfortunately!

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

If you place this on a new empty template, do you still have the issue?

{exp:textile}* one
* two
* three{/exp:textile}
       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.