Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-31 08:16:35

minusf
Member
Registered: 2005-02-15
Posts: 104

single item lists

hi there,

i am using txp 4.0.3 and it seems that textile cannot deal with a list
if it contains only a single item. maybe this is a bug, but before reporting
it as such, i thought i’d ask around here…

simple test:

* test

generates:
<code>
<ul> <li>test
</code>


we is experts™

Offline

#2 2006-07-31 08:58:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: single item lists

It needs an empty line after the list and it should work like so

  • li

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2006-07-31 09:21:49

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: single item lists

ok, i was a bit hasty. here is what happened.
i had a long paragraph and there was a linebreak inside it (pressed enter).
it was not intentional, so it is fixed. but now the question arises:
how do i create paragraphs inside a list item? is that possible?

the textile equivalent of
<code>
<ul>
<li>bla bla
<p>another bla bla
<li>
</ul>
</code>


we is experts™

Offline

#4 2006-07-31 09:41:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: single item lists

I think that paragraphs inside a li element is semantically incorrect so I would think that textile would not support it. If you really wish to do it you could try

<pre>* something here&#60;p&#62;no line break&#60;/p&#62;</pre>

but I do not know if it will work

Last edited by colak (2006-07-31 09:43:34)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2006-07-31 11:22:07

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: single item lists

as far as i know, paragraph inside list item is perfectly legal..

excellent, the example you gave works :)


we is experts™

Offline

#6 2006-08-01 04:30:02

doogxela
Member
Registered: 2004-07-29
Posts: 14
Website

Re: single item lists

Just to confirm, yes, the list item is a block level element and may contain any block level or inline element.

reference

Last edited by doogxela (2006-08-01 04:30:46)

Offline

#7 2006-08-01 15:02:47

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: single item lists

I stand corrected:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2006-08-01 15:12:40

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: single item lists

how do i create paragraphs inside a list item? is that possible?

Nope. Not at present, anway.

Offline

Board footer

Powered by FluxBB