From: why the lucky stiff Date: 2004-04-11T01:58:20+09:00 Subject: Re: RedCloth bug and suggestion Jim Menard wrote: > Thank you. It works for paragraphs, but not list items. If I have > > * item one > * item two that spans > multiple lines > * item three > > the output is > > multiple lines > ok, well, folding was happening after lists and tables, but now i've moved it to take place before. it still doesn't work like the above. currently, you can't align the text like you have it above, it doesn't wrap lines which begin with spaces. an equivalent for now would be: * item one * item two that spans multiple lines * item three > RedCloth works by performing substitutions in the text all at once, if > I'm not mistaken. I'm not sure that this situation can be handled by > search-and-replace; I think you have to walk the string with a state > machine and further complicate Textile's rules by saying "a line item > ends not with a newline but with multiple newlines or with the start of > a new line item". Ugh. i've thought about moving to a full-fledged parser, but it'll have to wait a while. _why