Fossils wiki inserts extra p tags around the first row in the first column of every table, for example:
<verbatim>
<table>
<tr>
<td>first item</td>
<td>second item</td>
</tr>
</table>
</verbatim>
renders as
<verbatim>
<table>
<tr>
<td><p>first item</p></td>
<td>second item</td>
</tr>
</table>
</verbatim>
<hr /><i>anonymous added on 2010-12-27 13:01:03:</i><br />
The following small patch seems to fix the problem:
<pre>
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, "<tr>", 4);
}
+ p->wantAutoParagraph = 0;
pushStack(p, markup.iCode);
renderMarkup(p->pOut, &markup);
}
}else
if( markup.iType==MUTYPE_HYPERLINK ){
</pre>
<hr /><i>anonymous added on 2010-12-27 13:13:51:</i><br />
You can use:
<verbatim>
<nowiki>
</nowiki>
</verbatim>
|