Fossil

Check-in [6f0df6c7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6f0df6c741887ef251d89224bc7c14894d489aed
User & Date: jeremy_c 2009-12-07 20:20:22
Original Comment: Fixed

inside of

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

References
2009-12-31
04:19 Closed ticket [2d000380]: Wiki engine inserts extra <p> before <li> in lists plus 2 other changes artifact: 4f3b13b0 user: jeremy_c
Context
2009-12-07
20:23
Update SQLite to version 3.6.21 final. check-in: 9f654b99 user: drh tags: trunk
20:20
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. check-in: 6f0df6c7 user: jeremy_c tags: trunk
18:34
changed a two-part/closed BR tag to avoid a warning from HTML syntax verifiers. check-in: 6009ff32 user: stephan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/wikiformat.c.

836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
  return p->aStack[i-1].iCode;
}

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

/*







|







836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
  return p->aStack[i-1].iCode;
}

/*
** Begin a new paragraph if that something that is needed.
*/
static void startAutoParagraph(Renderer *p){
  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;
}

/*