From 0ebb85187d787599daedf89a5d3b473c2a01ddcd Mon Sep 17 00:00:00 2001 From: Michael Beckemeyer Date: Sat, 24 Jul 2021 14:20:12 +0200 Subject: [PATCH] Ensure newline after brief when there is no detailed description. This prevents the headers of following sections leaking into the line(s) occupied by the brief description. --- src/Doxybook/DefaultTemplates.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Doxybook/DefaultTemplates.cpp b/src/Doxybook/DefaultTemplates.cpp index 105450f6b..3f401e67d 100644 --- a/src/Doxybook/DefaultTemplates.cpp +++ b/src/Doxybook/DefaultTemplates.cpp @@ -809,9 +809,7 @@ static const std::string TEMPLATE_KIND_NONCLASS = {% include "breadcrumbs" -%} -{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description) - -{% endif -%} +{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description){% endif %} {% include "nonclass_members_tables" -%} @@ -828,9 +826,7 @@ static const std::string TEMPLATE_KIND_CLASS = {% include "breadcrumbs" %} -{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description) - -{% endif -%} +{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description){% endif %} {% if exists("includes") %} `#include {{includes}}` @@ -870,9 +866,7 @@ static const std::string TEMPLATE_KIND_GROUP = {% include "breadcrumbs" -%} -{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description) - -{% endif -%} +{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description){% endif %} {% include "nonclass_members_tables" -%} @@ -888,9 +882,7 @@ static const std::string TEMPLATE_KIND_GROUP = static const std::string TEMPLATE_KIND_FILE = R"({% include "header" -%} -{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description) - -{% endif -%} +{% if exists("brief") %}{{brief}}{% endif %}{% if hasDetails %} [More...](#detailed-description){% endif %} {% include "nonclass_members_tables" -%}