From why at hobix.com Thu Apr 19 22:28:32 2007 From: why at hobix.com (why the lucky stiff) Date: Thu, 19 Apr 2007 21:28:32 -0500 Subject: Patch for superredcloth to enable textile table headers In-Reply-To: References: Message-ID: <20070420022831.GV93610@beekeeper.hobix.com> On Mon, Mar 26, 2007 at 02:27:09PM -0400, Stephen Bannasch wrote: > I updated my patch for table_headers here: > > http://code.whytheluckystiff.net/redcloth/ticket/9 > > I fixed a problem where it was breaking other functionality and and > added more table tests. I finally got around to checking this in. I don't know why it took me so long, cause this was a good patch, Stephen. _why From stephen at concord.org Fri Apr 20 03:14:50 2007 From: stephen at concord.org (Stephen Bannasch) Date: Fri, 20 Apr 2007 03:14:50 -0400 Subject: Patch for superredcloth to enable textile table headers In-Reply-To: <20070420022831.GV93610@beekeeper.hobix.com> References: <20070420022831.GV93610@beekeeper.hobix.com> Message-ID: >I finally got around to checking this in. I don't know why it took >me so long, cause this was a good patch, Stephen. Great! -- I was just talking today with someone who needed the patched gem and was thinking it would be easier (especially if more people needed it) if I could point them to the real gem. I also get a kick out of having my patch in your code :-) It took a while to get into the ragel headspace -- it reminded me a bit of when I wrote my first assembly language programs. The resulting patch was simple but I didn't take a direct path getting there. -- - Stephen Bannasch Concord Consortium, http://www.concord.org From rick.moynihan at gmail.com Wed Apr 25 17:36:56 2007 From: rick.moynihan at gmail.com (Rick Moynihan) Date: Wed, 25 Apr 2007 22:36:56 +0100 Subject: Redcloth bug - Stack overflow in regexp matcher Message-ID: Hi, I've been using the rassmalog static blogging engine and have encountered a stack overflow inside the redcloth regexp matcher. I don't seem to suffer this error on my Ubuntu (Feisty Fawn) box (with Ruby 1.8.4??), but I do get it on my Gentoo system. Running the following line will generate it (I've attached the YAML/redcloth file to this message). $ ruby -ryaml -rubygems -e "require 'redcloth'; f = YAML.load_file('regexp-stack-overflow.yaml'); puts RedCloth.new(f['text']).to_html" My system is: $ uname -a Linux godspeed 2.6.18-gentoo-r6 #1 PREEMPT Sun Dec 31 13:52:07 GMT 2006 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux $ ruby -version ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux] (I have also tried with Gentoo's Ruby 1.8.5_p2 - which generated the same error) $ gem list redcloth *** LOCAL GEMS *** RedCloth (3.0.4) RedCloth is a module for using Textile and Markdown in Ruby. Textile and Markdown are text formats. A very simple text format. Another stab at making readable text that can be converted to HTML. -- Rick rick.moynihan at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: regexp-stack-overflow.yaml Type: application/octet-stream Size: 2296 bytes Desc: not available Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20070425/b8cea0cc/attachment.obj