For Programmers: Free Programming Magazines  


Home > Archive > Ruby > August 2005 > Redcloth nested list bug









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Redcloth nested list bug
Dick Davies

2005-08-28, 6:59 pm

Anyone else seen this?

-------------------------8<----------------------------------
#!/usr/bin/env ruby

require 'redcloth'

rc = <<-END

Redcloth handles nested lists OK

# number 1
# number 2
** number 2 has a sublist
** this is fine, since the ordered list carries on
# number last

but not when the nested list is the last item in the parent list:

# number 1
# number 2
# number last
** number last has a sublist
** this generates unclosed tags

(I've mixed OL and UL here, otherwise you wouldn't see it).
This showed up in typo, but it seems to be in my system redcloth on Debian
too.

END

puts RedCloth.new(rc).to_html
-------------------------8<----------------------------------


--
Rasputin :: Jack of All Trades - Master of Nuns

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com