Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Text-Textile CPAN distribution.

Report information
The Basics
Id: 19251
Status: open
Priority: 0/
Queue: Text-Textile

People
Owner: brad [...] bradchoate.com
Requestors: info [...] gwendragon.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.03
Fixed in: (no value)



Subject: lists are not converted correctly to HTML
* 1 * 2 * 3 are translated to <ul> <li>1</li> </ul> <ul> <li>2</li> </ul> <ul> <li>3</li> </ul> Thats wrong. The same with # Lists # 1 # 2 # 3 are: <ol> <li>1</li> </ol> <ol> <li>2</li> </ol> <ol> <li>3</li> </ol>
I'm sorry-- I cannot reproduce this behavior. Can you run these tests and tell me what you get? 1. perl -MText::Textile=textile -e 'print textile("* 1\n* 2\n* 3\n")' 2. perl -MText::Textile=textile -e 'print textile("* 1\r\n* 2\r\n* 3\r\n")' 3. perl -MText::Textile=textile -e 'print textile("* 1\r* 2\r* 3\r")' For me, all three produce this: <ul> <li>1</li> <li>2</li> <li>3</li> </ul> And when reporting bugs, it's always helpful if you can provide information about your environment. What OS you're using, version of Perl, etc. On Sun May 14 15:35:36 2006, guest wrote: Show quoted text
> * 1 > * 2 > * 3 > > are translated to > <ul> > <li>1</li> > </ul> > <ul> > <li>2</li> > </ul> > <ul> > <li>3</li> > </ul> > > Thats wrong. > The same with # Lists > > # 1 > # 2 > # 3 > > are: > > <ol> > <li>1</li> > </ol> > <ol> > <li>2</li> > </ol> > <ol> > <li>3</li> > </ol> > >
On Di. 04. Jul. 2006, 13:28:11, BCHOATE wrote: Show quoted text
> I'm sorry-- I cannot reproduce this behavior. Can you run these tests > and tell me what you > get? > > 1. > > perl -MText::Textile=textile -e 'print textile("* 1\n* 2\n* 3\n")' > > 2. > > perl -MText::Textile=textile -e 'print textile("* 1\r\n* 2\r\n* > 3\r\n")' > > 3. > > perl -MText::Textile=textile -e 'print textile("* 1\r* 2\r* 3\r")' > > For me, all three produce this: > > <ul> > <li>1</li> > <li>2</li> > <li>3</li> > </ul> > > > And when reporting bugs, it's always helpful if you can provide > information about your > environment. What OS you're using, version of Perl, etc. > >
Well, seems to be a problem with \r and \n in input! Try this: perl -MText::Textile=textile -e 'print textile("* 1\r\n* 2\n\r* 3\n\r")'
OK, I can reproduce this now. But I'm unfamiliar with \n\r as a line separator. \r\n is common for Windows, \r for old-Mac line endings and \n for Unix/Linux/MacOSX. What produces \n\r ??? Textile reads that as two line separators right now, so it sees the input like this: * 1 * 2 * 3 -Brad On Tue Jul 04 13:43:02 2006, guest wrote: Show quoted text
> On Di. 04. Jul. 2006, 13:28:11, BCHOATE wrote:
> > I'm sorry-- I cannot reproduce this behavior. Can you run these tests > > and tell me what you > > get? > > > > 1. > > > > perl -MText::Textile=textile -e 'print textile("* 1\n* 2\n* 3\n")' > > > > 2. > > > > perl -MText::Textile=textile -e 'print textile("* 1\r\n* 2\r\n* > > 3\r\n")' > > > > 3. > > > > perl -MText::Textile=textile -e 'print textile("* 1\r* 2\r* 3\r")' > > > > For me, all three produce this: > > > > <ul> > > <li>1</li> > > <li>2</li> > > <li>3</li> > > </ul> > > > > > > And when reporting bugs, it's always helpful if you can provide > > information about your > > environment. What OS you're using, version of Perl, etc. > > > >
> > Well, seems to be a problem with \r and \n in input! > > Try this: > > perl -MText::Textile=textile -e 'print textile("* 1\r\n* 2\n\r* 3\n\r")'