diff --git a/docs/doxybook_templates/class_members.tmpl b/docs/doxybook_templates/class_members.tmpl index 5f47e15e4a..e404b99904 100644 --- a/docs/doxybook_templates/class_members.tmpl +++ b/docs/doxybook_templates/class_members.tmpl @@ -35,6 +35,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "publicTypes") -%} {%- for child in base.publicTypes -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_type.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -50,6 +51,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "publicClasses") -%} {%- for child in base.publicClasses -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_class.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -68,6 +70,7 @@ {%- if existsIn(base, "friends") -%} {%- for child in base.friends -%} {%- if child.type == "class" or child.type == "struct" -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_friend_class.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -84,6 +87,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "publicAttributes") -%} {%- for child in base.publicAttributes -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_variable.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -99,6 +103,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "publicFunctions") -%} {%- for child in base.publicFunctions -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_function.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -117,6 +122,7 @@ {%- if existsIn(base, "friends") -%} {%- for child in base.friends -%} {%- if child.type != "class" and child.type != "struct" -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_friend_function.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -143,6 +149,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "protectedTypes") -%} {%- for child in base.protectedTypes -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_type.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -158,6 +165,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "protectedClasses") -%} {%- for child in base.protectedClasses -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_class.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -173,6 +181,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "protectedAttributes") -%} {%- for child in base.protectedAttributes -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_variable.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} @@ -188,6 +197,7 @@ {%- if exists("baseClasses") -%}{%- for base in baseClasses -%} {%- if existsIn(base, "protectedFunctions") -%} {%- for child in base.protectedFunctions -%} + {%- set base.synopsis_indent_width = default(synopsis_indent_width, 0) -%} {{- render("synopsis_inherited_from.tmpl", base) -}} {%- include "synopsis_function.tmpl" -%} {%- set synopsis_needs_leading_line_break = true -%} diff --git a/docs/doxybook_templates/synopsis_inherited_from.tmpl b/docs/doxybook_templates/synopsis_inherited_from.tmpl index ae1b9e54c3..4afda1250b 100644 --- a/docs/doxybook_templates/synopsis_inherited_from.tmpl +++ b/docs/doxybook_templates/synopsis_inherited_from.tmpl @@ -1,5 +1,7 @@ {{ noop() -}} - {%- include "synopsis_indent.tmpl" -%} + {%- if default(synopsis_indent_width, 0) != 0 -%} + {%- include "synopsis_indent.tmpl" -%} + {%- endif -%} /* Inherited from {{ noop() -}} {%- include "name_qualified.tmpl" -%}{{ noop() -}} */{{ noop() -}}