Forum: Redcloth Bug and workaround: Extra bullet or extra (blank) list item added after end of your list.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris Niswander (Guest)
on 2009-11-26 22:57
(Received via mailing list)

Suppose you have a Textile document that *ends in* a list,
but has *several* (say, four or more) blank lines after the last list

==== begin hypothetical document ====
* I am a short list.

==== after end of hypothetical document ====

An extra bullet (or extra blank list item) is added
to the end of your list.

I found this using Redcloth 4.2.2.
You can reproduce this with

The bug can be produced with both bulleted (*) and numbered (#) lists.


Either will work:
   - Don't have several blank lines on the end of a document
     following a list.  (The "Don't do that!" workaround :-) )
   - Place invisible text after the end of a document-ending list,
     such as an HTML 'non-breaking space character entity'.
     (Actual text:  
      Attempt to represent it to be visible in some wonky HTML email:

Anyway, I thought a few people might run into the bug and need a
hint towards a workaround.

Also, I thought it was an interesting bug. :-)
This topic is locked and can not be replied to.