Fossil SCM

Make no attempt to output closing P tags when rendering wiki as this can sometimes result in mis-rendered wiki text.

drh 2013-04-28 18:26 trunk
Commit e6cada82199eb79d0bf3cad55139e43683ab2e46
1 file changed -2
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1013,21 +1013,19 @@
10131013
static void startAutoParagraph(Renderer *p){
10141014
if( p->wantAutoParagraph==0 ) return;
10151015
if( p->state & WIKI_LINKSONLY ) return;
10161016
if( p->wikiList==MARKUP_OL || p->wikiList==MARKUP_UL ) return;
10171017
blob_appendf(p->pOut, "<p>", -1);
1018
- pushStack(p, MARKUP_P);
10191018
p->wantAutoParagraph = 0;
10201019
p->inAutoParagraph = 1;
10211020
}
10221021
10231022
/*
10241023
** End a paragraph if we are in one.
10251024
*/
10261025
static void endAutoParagraph(Renderer *p){
10271026
if( p->inAutoParagraph ){
1028
- popStackToTag(p, MARKUP_P);
10291027
p->inAutoParagraph = 0;
10301028
}
10311029
}
10321030
10331031
/*
10341032
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1013,21 +1013,19 @@
1013 static void startAutoParagraph(Renderer *p){
1014 if( p->wantAutoParagraph==0 ) return;
1015 if( p->state & WIKI_LINKSONLY ) return;
1016 if( p->wikiList==MARKUP_OL || p->wikiList==MARKUP_UL ) return;
1017 blob_appendf(p->pOut, "<p>", -1);
1018 pushStack(p, MARKUP_P);
1019 p->wantAutoParagraph = 0;
1020 p->inAutoParagraph = 1;
1021 }
1022
1023 /*
1024 ** End a paragraph if we are in one.
1025 */
1026 static void endAutoParagraph(Renderer *p){
1027 if( p->inAutoParagraph ){
1028 popStackToTag(p, MARKUP_P);
1029 p->inAutoParagraph = 0;
1030 }
1031 }
1032
1033 /*
1034
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1013,21 +1013,19 @@
1013 static void startAutoParagraph(Renderer *p){
1014 if( p->wantAutoParagraph==0 ) return;
1015 if( p->state & WIKI_LINKSONLY ) return;
1016 if( p->wikiList==MARKUP_OL || p->wikiList==MARKUP_UL ) return;
1017 blob_appendf(p->pOut, "<p>", -1);
 
1018 p->wantAutoParagraph = 0;
1019 p->inAutoParagraph = 1;
1020 }
1021
1022 /*
1023 ** End a paragraph if we are in one.
1024 */
1025 static void endAutoParagraph(Renderer *p){
1026 if( p->inAutoParagraph ){
 
1027 p->inAutoParagraph = 0;
1028 }
1029 }
1030
1031 /*
1032

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button