From 044f42a3787a2889811469518339ac16c2695a90 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 21 May 2021 13:27:51 +0100 Subject: [PATCH] protodoc: Fix github links Signed-off-by: Ryan Northey --- tools/protodoc/protodoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/protodoc/protodoc.py b/tools/protodoc/protodoc.py index 0321afe0bd750..a66d6cf021047 100755 --- a/tools/protodoc/protodoc.py +++ b/tools/protodoc/protodoc.py @@ -678,7 +678,7 @@ def visit_enum(self, enum_proto, type_context): normal_enum_type = normalize_type_context_name(type_context.name) anchor = format_anchor(enum_cross_ref_label(normal_enum_type)) header = format_header('-', 'Enum %s' % normal_enum_type) - proto_link = github_url("f[{normal_enum_type} proto]", type_context) + '\n\n' + proto_link = github_url(f"[{normal_enum_type} proto]", type_context) + '\n\n' leading_comment = type_context.leading_comment formatted_leading_comment = format_comment_with_annotations(leading_comment, 'enum') if hide_not_implemented(leading_comment):