From 25823342e7478ae224f7255e011b54b940ecc20b Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sun, 7 Apr 2024 13:13:49 +0200 Subject: [PATCH] avoid extra space in headline of generated Markdown --- .../rbac/rbacdef/RbacViewMermaidFlowchartGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/hostsharing/hsadminng/rbac/rbacdef/RbacViewMermaidFlowchartGenerator.java b/src/main/java/net/hostsharing/hsadminng/rbac/rbacdef/RbacViewMermaidFlowchartGenerator.java index 089f27ae..96a956e5 100644 --- a/src/main/java/net/hostsharing/hsadminng/rbac/rbacdef/RbacViewMermaidFlowchartGenerator.java +++ b/src/main/java/net/hostsharing/hsadminng/rbac/rbacdef/RbacViewMermaidFlowchartGenerator.java @@ -165,7 +165,7 @@ public class RbacViewMermaidFlowchartGenerator { Files.writeString( path, """ - ### rbac %{entityAlias} %{case} + ### rbac %{entityAlias}%{case} This code generated was by RbacViewMermaidFlowchartGenerator, do not amend manually. @@ -175,7 +175,7 @@ public class RbacViewMermaidFlowchartGenerator { """ .replace("%{entityAlias}", rbacDef.getRootEntityAlias().aliasName()) .replace("%{flowchart}", flowchart.toString()) - .replace("%{case}", forCase == null ? "" : (forCase.toString()) ), + .replace("%{case}", forCase == null ? "" : " " + forCase), StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING); System.out.println("Markdown-File: " + path.toAbsolutePath()); }