From f87770d504950c975a3b1f0de2286144222646e3 Mon Sep 17 00:00:00 2001 From: Tony <3987237+random1223@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:16:27 -0700 Subject: [PATCH] Fix new line in comments. (#10) --- .../scanner/reporter/IssueToBulletPointTextGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/src/main/java/io/codety/scanner/reporter/IssueToBulletPointTextGenerator.java b/scanner/src/main/java/io/codety/scanner/reporter/IssueToBulletPointTextGenerator.java index c8d4e01..cff4907 100644 --- a/scanner/src/main/java/io/codety/scanner/reporter/IssueToBulletPointTextGenerator.java +++ b/scanner/src/main/java/io/codety/scanner/reporter/IssueToBulletPointTextGenerator.java @@ -39,6 +39,6 @@ public static void extracted(CodeAnalysisIssueDto issueDto, StringBuilder sb) { sb.append("[").append(issueDto.getCweId()).append("] "); } if (issueDto.getDescription() != null) - sb.append(" ").append(issueDto.getDescription()); + sb.append(" ").append(issueDto.getDescription().replaceAll("\\n", "")); } }