Check-in [6f0df6c741]
Not logged in
Overview

SHA1 Hash:6f0df6c741887ef251d89224bc7c14894d489aed
Date: 2009-12-07 20:20:22
User: jeremy_c
Edited Comment:Fixed the insertion of invalid P tags inside of UL and OL elements when autoparagraph is on. Bug was reported on the fossil mailing list by Stephan Beal.
Original Comment:Fixed

inside of

    and
      elements when autoparagraph is on. Bug was reported on the fossil mailing list by Stephan Beal.

Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/wikiformat.c from [0e2f5af22b] to [b5af4fe5ac].

@@ -838,11 +838,11 @@
 
 /*
 ** Begin a new paragraph if that something that is needed.
 */
 static void startAutoParagraph(Renderer *p){
-  if( p->wantAutoParagraph==0 ) return;
+  if( p->wantAutoParagraph==0 || p->wikiList==MARKUP_OL || p->wikiList==MARKUP_UL ) return;
   blob_appendf(p->pOut, "<p>", -1);
   pushStack(p, MARKUP_P);
   p->wantAutoParagraph = 0;
   p->inAutoParagraph = 1;
 }