-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Describe the bug
In the documentation generated for the source code I'm working on, I am seeing unexpected HTML formatting for the detailed description of enum values that are documented using C++ style comments with a "\brief" description that fits on a single line. This description is unexpectedly formatted as a code block.
Expected behavior
The detailed description of these enums should be formatted as a normal paragraph.
To Reproduce
Here's a sample header that illustrates the problem:
struct S1 {
/// \brief This is an enum.
///
/// This is a detailed description.
enum E {
/// \brief This is a value.
///
/// This is a detailed description.
VALUE0 = 0,
/**
* \brief This is a value.
*
* This is a detailed description.
*/
VALUE1 = 1,
/// \brief This is a value.
/// This is a detailed description.
VALUE2 = 2,
///
/// \brief This is a value.
///
/// This is a detailed description.
///
VALUE3 = 3,
/// \brief This is a value.
VALUE4 = 4,
/// \brief This is a
/// value.
///
/// This is a detailed description.
VALUE5 = 5,
///
/// \brief This is a value.
///
/// This is a detailed description.
VALUE6 = 6,
};
/// \brief This is a member.
///
/// This is a detailed description.
int member;
/// \brief This is a method.
///
/// This is a detailed description.
int method();
}
The formatting error occurs with an empty Doxyfile or the default Doxyfile that would be generated via the -g option.
I do not see formatting errors for the S class, the member member, or the method method(), even though they are all identical. I also don't see this error for C-style comments (VALUE1), if the brief and detailed description are separated by blank lines instead of an empty comment (VALUE2), if the is an extra comment-only line before \brief (VALUE3 and VALUE6), or if the \brief description spans two lines.
Version
This was originally observed on Doxygen 1.9.3, but it also reproduces on Doxygen 1.10.0, both on Windows.
Stack trace
N/A
Additional context
I can't think of anything else relevant here.
