resend : Redcloth nested list bug

D

Dick Davies

------=_Part_321_2671289.1125001353973
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

#!/usr/bin/env ruby

require 'redcloth'

rc =3D <<-END

Hi folks _(sorry about the resend - gmail is a bit screwy with this
list for some reason)_


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

------=_Part_321_2671289.1125001353973
Content-Type: application/octet-stream; name="rc-oops.rb"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="rc-oops.rb"

IyEvdXNyL2Jpbi9lbnYgcnVieQoKcmVxdWlyZSAncmVkY2xvdGgnCgpyYyA9IDw8LUVORAoKUmVk
Y2xvdGggaGFuZGxlcyBuZXN0ZWQgbGlzdHMgT0sKCiMgbnVtYmVyIDEKIyBudW1iZXIgMgoqKiBu
dW1iZXIgMiBoYXMgYSBzdWJsaXN0CioqIHRoaXMgaXMgZmluZSwgc2luY2UgdGhlIG9yZGVyZWQg
bGlzdCBjYXJyaWVzIG9uCiMgbnVtYmVyIGxhc3QKCmJ1dCBub3Qgd2hlbiB0aGUgbmVzdGVkIGxp
c3QgaXMgdGhlIGxhc3QgaXRlbSBpbiB0aGUgcGFyZW50IGxpc3Q6CgojIG51bWJlciAxCiMgbnVt
YmVyIDIKIyBudW1iZXIgbGFzdAoqKiBudW1iZXIgbGFzdCBoYXMgYSBzdWJsaXN0CioqIHRoaXMg
Z2VuZXJhdGVzIHVuY2xvc2VkIHRhZ3MKCihJJ3ZlIG1peGVkIE9MIGFuZCBVTCBoZXJlLCBvdGhl
cndpc2UgeW91IHdvdWxkbid0IHNlZSBpdCkuClRoaXMgc2hvd2VkIHVwIGluIHR5cG8sIGJ1dCBp
dCBzZWVtcyB0byBiZSBpbiBteSBzeXN0ZW0gcmVkY2xvdGggb24gRGViaWFuCnRvby4KCkVORAoK
cHV0cyBSZWRDbG90aC5uZXcocmMpLnRvX2h0bWwK
------=_Part_321_2671289.1125001353973--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top