Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-14 10:15:00

majkinetor
Member
Registered: 2007-10-10
Posts: 13

[textile] Textile and lists bug

This textile

* 1
* 2
* 3

Produces this output:

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

Do you know what is the problem here ? Why is the last list item separated ? This can be visualy fixed in Opera if I add blank list item at the end, like:

* 1
* 2
* 3
* 

but IE will show it.

So, how can I fix it ?

Also, can I add code block in list item with Textile, to produce following output:

<ul>
  <li> some text 
        <code>
             some code
        </code>
  </li>
</ul>

I tried with

* some text
 
bc. some code

But it makes code bellow UL

Last edited by majkinetor (2007-11-14 10:22:04)

Offline

#2 2007-11-14 10:17:05

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Textile and lists bug

How to.. what?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#3 2007-11-14 10:18:39

majkinetor
Member
Registered: 2007-10-10
Posts: 13

Re: [textile] Textile and lists bug

LOL, sorry, accidently clicked post instead preview

Read it again

Offline

#4 2007-11-14 10:32:05

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: [textile] Textile and lists bug

heres the issue (error in php 5.2.4+) and the fix

for now you will have to manually apply the patch but its already in the upcoming txp 4.0.6

Offline

#5 2007-11-14 11:09:33

majkinetor
Member
Registered: 2007-10-10
Posts: 13

Re: [textile] Textile and lists bug

Thx.

What about the second part of the question ? Is it feasible ?

Offline

#6 2007-11-14 11:53:40

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Textile and lists bug

Textile is just a shortcut language you can use for HTML…. for simple constructs. For anything complicated, just use HTML.

Offline

#7 2007-11-15 08:34:59

wp-digger
New Member
Registered: 2007-11-15
Posts: 1

Re: [textile] Textile and lists bug

.

Last edited by wp-digger (2007-11-17 13:02:19)

Offline

#8 2008-02-06 23:59:01

xube
New Member
From: Slovakia
Registered: 2008-02-06
Posts: 3
Website

Re: [textile] Textile and lists bug

I have the same problem. I have the newest Textpattern v.4.0.6 with fix of this problem, but the problem persist.

I have PHP: 5.2.5-pl1-gentoo //from Diagnostic

Any suggestions to fix the problem?

THX

Last edited by xube (2008-02-07 00:02:15)

Offline

#9 2008-02-07 01:08:52

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [textile] Textile and lists bug

have you tried to save the affected articles again?

Offline

#10 2008-02-07 10:09:23

xube
New Member
From: Slovakia
Registered: 2008-02-06
Posts: 3
Website

Re: [textile] Textile and lists bug

nardo wrote:

have you tried to save the affected articles again?

Of course…

Offline

#11 2008-02-07 12:25:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Textile and lists bug

Please post your high diagnostics. And give a new example of the problem and what the resulting HTML code is.

Offline

#12 2008-02-07 14:52:42

xube
New Member
From: Slovakia
Registered: 2008-02-06
Posts: 3
Website

Re: [textile] Textile and lists bug

ruud wrote:

Please post your high diagnostics. And give a new example of the problem and what the resulting HTML code is.

Nevermind. Its cause by PHP. Administrator gave older version 5.2.5 today and It works fine. According to me is a problem with counting foreach in new PHP 5.2.6.

But Thanks

Last edited by xube (2008-02-07 14:54:29)

Offline

Board footer

Powered by FluxBB