logo       

Extra newline before </pre> for \code ... \endcode blocks: msg#00118

text.doxygen.general

Subject: Extra newline before </pre> for \code ... \endcode blocks

Doxygen 1.3-rc3 appears to put an extra newline at the end of my code examples, which to me seems like incorrect behavior:

If I put:
----
\code
foo
\endcode
---
In my code documentation I would expect a html block
---
<pre>
foo
</pre>
---
but appear to get
---
<pre>
foo

</pre>
---

The source of the HTML documentation generated by the following example shows this more clearly:
---
/** \file */

/** A function.
* \code foo;
* bar;
* \endcode
*/
int foo1();

/** Another function.
* \code
* foo;
* bar;
*
* \endcode
*/
int foo2();

/** And another function.
* \code
*
* foo;
* bar;\endcode
*/
int foo3();
---

This will probably be easily fixed by removing a '\n' somewhere in the doxygen code.

Regards,
Sander Niemeijer



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise