From: Jim Menard Date: 2004-04-10T00:21:27+09:00 Subject: Re: RedCloth bug and suggestion _why_, On Apr 9, 2004, at 11:13 AM, why the lucky stiff wrote: > Jim Menard wrote: > >> bq. -- some text >> turns into >>

bq.—some text

> > The rule was: if an em-dash '--' is surrounded by spaces, the spaces > get stripped, so the dash can snug up against the words it's near. > > But, in the case of a period, I think we should keep the space. So > the above should work now and sentences which start with an em-dash > should be easier to look on. Thank you. Just a thought: should there be a magic string that forces the space to stay there, like using "{}" in LaTeX? > No. Personally, I use YAML to handle the folding of my text. So the > above could be stored in my YAML: > > --- > > A paragraph that spans > multiple lines. > > Then, RedCloth.new( YAML::load( above_string ) ).to_html. Do you write your docs and Web pages in YAML? I'm writing things like articles and documentation. In LaTeX, multiple lines turn into a single justified paragraph. > So, if you like, I could strip the folding code out of the old YAML.rb > and use it in RedCloth. That would be great. Again, if there was a way to turn that off (with folding on by default), that would be nice. Thank you. Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "Hey, wait a minute. You've got both eyes! You're no special agent. You're just some jerk who hates my moustache!" - The Tick