Fossil SCM
Make no attempt to output closing P tags when rendering wiki as this can sometimes result in mis-rendered wiki text.
Commit
e6cada82199eb79d0bf3cad55139e43683ab2e46
Parent
30da8e8b087d0ed…
1 file changed
-2
-2
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -1013,21 +1013,19 @@ | ||
| 1013 | 1013 | static void startAutoParagraph(Renderer *p){ |
| 1014 | 1014 | if( p->wantAutoParagraph==0 ) return; |
| 1015 | 1015 | if( p->state & WIKI_LINKSONLY ) return; |
| 1016 | 1016 | if( p->wikiList==MARKUP_OL || p->wikiList==MARKUP_UL ) return; |
| 1017 | 1017 | blob_appendf(p->pOut, "<p>", -1); |
| 1018 | - pushStack(p, MARKUP_P); | |
| 1019 | 1018 | p->wantAutoParagraph = 0; |
| 1020 | 1019 | p->inAutoParagraph = 1; |
| 1021 | 1020 | } |
| 1022 | 1021 | |
| 1023 | 1022 | /* |
| 1024 | 1023 | ** End a paragraph if we are in one. |
| 1025 | 1024 | */ |
| 1026 | 1025 | static void endAutoParagraph(Renderer *p){ |
| 1027 | 1026 | if( p->inAutoParagraph ){ |
| 1028 | - popStackToTag(p, MARKUP_P); | |
| 1029 | 1027 | p->inAutoParagraph = 0; |
| 1030 | 1028 | } |
| 1031 | 1029 | } |
| 1032 | 1030 | |
| 1033 | 1031 | /* |
| 1034 | 1032 |
| --- 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 |