After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620926 - \if and \endif inside tables
\if and \endif inside tables
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.6.3
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-06-08 06:16 UTC by Michael Stockman
Modified: 2010-06-15 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Stockman 2010-06-08 06:16:36 UTC
Suppose you have the following doxygen code:

/** \page my_page_2 Another page

<table>
<tr><th>Byte no</th><th>Bit</th><th>Function</th></tr>
<tr><td>0</td><td>0x01</td><td>Energy</td></tr>
<tr><td>0</td><td>0x02</td><td>Volume</td></tr>
<tr><td>0</td><td>0x04</td><td>Temperature T1</td></tr>
<tr><td>0</td><td>0x08</td><td>Temperature T2</td></tr>
\if ADVANCED_METER
<tr><td>0</td><td>0x10</td><td>Phase</td></tr>
\else
<tr><td>0</td><td>0x10</td><td>Reserved</td></tr>
\endif
<tr><td>0</td><td>0x20</td><td>Flow</td></tr>
</table>

 */

In the HTML output, the \if-line causes </p><p class="endtd"></p> to be inserted into the last preceding <td> adding an empty line to the cell.
In the tex output an empty line is added to all cells on the last row.

The same effect occurs at the \endif.

Bug 576701 discusses <p> in table cells, but seems to be a different behaviour since it talks about enclosing all table data in paragraphs, not adding an empty paragraph in some cells.
Comment 1 Dimitri van Heesch 2010-06-11 14:09:17 UTC
This seems to have the same cause as bug 620924, so it should also be fixed in the next release.
Comment 2 Dimitri van Heesch 2010-06-15 11:21:56 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.0. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.