-
+
Comment headline type_field
diff --git a/subdoc/gen_tests/templates/TemplateMethods.html b/subdoc/gen_tests/templates/TemplateMethods.html
index 336748113..b86789771 100644
--- a/subdoc/gen_tests/templates/TemplateMethods.html
+++ b/subdoc/gen_tests/templates/TemplateMethods.html
@@ -117,7 +117,7 @@
-
template <class U>
static U
member
+
template <class U>
static U
member
@@ -212,7 +212,7 @@
diff --git a/subdoc/gen_tests/typenames-across-paths/n-HoldS.html b/subdoc/gen_tests/typenames-across-paths/n-HoldS.html
index 3523fdc55..371ff7e5e 100644
--- a/subdoc/gen_tests/typenames-across-paths/n-HoldS.html
+++ b/subdoc/gen_tests/typenames-across-paths/n-HoldS.html
@@ -88,12 +88,12 @@
diff --git a/subdoc/lib/gen/generate_record.cc b/subdoc/lib/gen/generate_record.cc
index 3eba6f3c8..412d3ab93 100644
--- a/subdoc/lib/gen/generate_record.cc
+++ b/subdoc/lib/gen/generate_record.cc
@@ -221,6 +221,10 @@ sus::Result
generate_record_fields(
name_div.add_class("item-name");
name_div.add_class("member-signature");
+ {
+ auto anchor = name_div.open_a();
+ anchor.add_name(construct_html_url_anchor_for_field(fe));
+ }
if (!fe.template_params.is_empty()) {
auto template_div = name_div.open_div(HtmlWriter::SingleLine);
template_div.add_class("template");
@@ -241,7 +245,6 @@ sus::Result generate_record_fields(
}
generate_type(name_div, fe.type, [&](HtmlWriter::OpenDiv& div) {
auto anchor = div.open_a();
- anchor.add_name(construct_html_url_anchor_for_field(fe));
anchor.add_href(construct_html_url_for_field(fe));
anchor.add_class("field-name");
anchor.write_text(fe.name);