Fossil SCM

wiki inserts P tags in tables

Closed

0fd3c7d243e74ad… · opened 15 years, 6 months ago

Type
Code_Defect
Priority
Immediate
Severity
Minor
Resolution
Drive_By_Patch
Subsystem
Created
Oct. 7, 2010 11:03 a.m.

Fossils wiki inserts extra p tags around the first row in the first column of every table, for example:


<table>
 <tr>
  <td>first item</td>
  <td>second item</td>
 </tr>
</table>

renders as


<table>
 <tr>
  <td><p>first item</p></td>
  <td>second item</td>
 </tr>
</table>


anonymous added on 2010-12-27 13:01:03: The following small patch seems to fix the problem:


Index: src/wikiformat.c
===================================================================
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1404,10 +1404,11 @@
           if( backupToType(p, MUTYPE_TABLE|MUTYPE_TR) ){
             if( stackTopType(p)==MUTYPE_TABLE ){
               pushStack(p, MARKUP_TR);
               blob_append(p->pOut, "", 4);
             }
+            p->wantAutoParagraph = 0;
             pushStack(p, markup.iCode);
             renderMarkup(p->pOut, &markup;);
           }
         }else
         if( markup.iType==MUTYPE_HYPERLINK ){


anonymous added on 2010-12-27 13:13:51: You can use:


<nowiki>
</nowiki>


Comments (1)

wyoung 2 years, 2 months ago

Applied here. Thank you!

Keyboard Shortcuts

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