From 24106fbe3addf97382c40637971dc49010fb15ca Mon Sep 17 00:00:00 2001 From: Deanna Garcia Date: Fri, 1 Jul 2022 17:51:52 +0000 Subject: [PATCH] Kdocify comments from source --- src/google/protobuf/compiler/java/doc_comment.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/java/doc_comment.cc b/src/google/protobuf/compiler/java/doc_comment.cc index d5fadb63cf..75cb466e40 100644 --- a/src/google/protobuf/compiler/java/doc_comment.cc +++ b/src/google/protobuf/compiler/java/doc_comment.cc @@ -147,7 +147,9 @@ static void WriteDocCommentBodyForLocation(io::Printer* printer, ? location.trailing_comments : location.leading_comments; if (!comments.empty()) { - if (!kdoc) { + if (kdoc) { + comments = EscapeKdoc(comments); + } else { comments = EscapeJavadoc(comments); }