From a2ab4065cc59c1b4df1c1b8f10d9df90dbb87682 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 23 Dec 2024 14:34:27 +0100 Subject: [PATCH] Add a missing newline after `` --- .../java/template/processor/RefasterTemplateProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/java/template/processor/RefasterTemplateProcessor.java b/src/main/java/org/openrewrite/java/template/processor/RefasterTemplateProcessor.java index 0936488..c870a0d 100644 --- a/src/main/java/org/openrewrite/java/template/processor/RefasterTemplateProcessor.java +++ b/src/main/java/org/openrewrite/java/template/processor/RefasterTemplateProcessor.java @@ -487,7 +487,7 @@ private String recipeDescriptor(JCTree.JCClassDecl classDecl, String defaultDisp String commentText = comment.getText() .replace("

", "") .replace("

{@code", "```java")
-                            .replace("}
", "```") + .replace("}", "```\n") .replaceAll("(?s)\\{@\\S+\\s+(.*?)}", "`$1`") .replace("\\", "\\\\") .replace("\"", "\\\"")