From ecde20826540d339c5f03e6ff7eb77464af9c269 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 13 Jun 2021 13:49:33 +0200 Subject: Merged brief and detailed description in case if INLINE_SIMPLE_STRUCTS with LaTeX/ RTF When we have a program like: ``` /** \file */ /** outer */ struct Outer { /** foo */ union Foo { /** Bar */ struct FooFlags { bool cond1; /*!< \brief bar 1 * \details details1 bar 1 */ bool cond2; /*!< bar 2 */ } flags; /*!< \brief foo bar * \details details2 of foo bar */ } myMember; /*!< public member */ private: void myWork(); /*!< private member function */ }; ``` and a Doxyfile like ``` INLINE_SIMPLE_STRUCTS = YES QUIET=YES GENERATE_RTF=YES ``` We see in HTML that brief and detailed description start on a separate line, but for LaTeX and RTF (it is not implemented in docbook) the detailed description directly follows the brief description without a line separator. --- src/memberdef.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/memberdef.cpp b/src/memberdef.cpp index c116b7c..ef71566 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -3770,6 +3770,12 @@ void MemberDefImpl::writeMemberDocSimple(OutputList &ol, const Definition *conta /* write detailed description */ if (!detailed.isEmpty()) { + if (!brief.isEmpty()) + { + ol.disable(OutputGenerator::Html); + ol.lineBreak(); + ol.enable(OutputGenerator::Html); + } ol.generateDoc(docFile(),docLine(), getOuterScope()?getOuterScope():container,this, detailed+"\n",FALSE,FALSE, -- cgit v0.12