Re: markdown issue

2007-09-04 Thread [EMAIL PROTECTED]
so great, it is what i wanted now On 9月4日, 下午10时03分, Tim Chase <[EMAIL PROTECTED]> wrote: > > i find this code translate enter once to "" , and enter twice is > > still "". > > i want keep "", ie. enter once i get a "", enter twice i get a > > "" > > is this possible? > > Ah...I misunderstood wh

Re: markdown issue

2007-09-04 Thread Tim Chase
> i find this code translate enter once to "" , and enter twice is > still "". > i want keep "", ie. enter once i get a "", enter twice i get a > "" > is this possible? Ah...I misunderstood what you wanted. Yes, the same sort of thing could work: r = re.compile('([^\n])\n([^\n])') text = r.su

Re: markdown issue

2007-09-04 Thread [EMAIL PROTECTED]
Actually, after test for 2 days, i find this code translate enter once to "" , and enter twice is still "". i want keep "", ie. enter once i get a "", enter twice i get a "" is this possible? thx! On 9月3日, 下午4时15分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > it is ok now, thx Tim > > On 9月

Re: markdown issue

2007-09-03 Thread [EMAIL PROTECTED]
it is ok now, thx Tim On 9月3日, 上午6时29分, Tim Chase <[EMAIL PROTECTED]> wrote: > > but this is the same as enter twice, user must remember to end with > > one or more space. > > > is there other plugin like markdown which is a truely what they is > > what they get? > > Well, it's possible to pre-p

Re: markdown issue

2007-09-02 Thread Tim Chase
> but this is the same as enter twice, user must remember to end with > one or more space. > > is there other plugin like markdown which is a truely what they is > what they get? Well, it's possible to pre-process the user's input with something like import re add_br_re = re.compile('\n+') in

Re: markdown issue

2007-09-02 Thread [EMAIL PROTECTED]
thx ,Johnathan. but this is the same as enter twice, user must remember to end with one or more space. is there other plugin like markdown which is a truely what they is what they get? thx On Sep 2, 11:25 pm, Jonathan Buchanan <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > i use ma

Re: markdown issue

2007-09-02 Thread Jonathan Buchanan
[EMAIL PROTECTED] wrote: > i use markdown for beautify content, but i found if enter once, there > will be no new line. > i need to enter twice to get a new line (as ) > > how can i get a new line when enter once, you know our user do not > know they need to enter twice. "When you do want to in