avoid extra space in headline of generated Markdown

This commit is contained in:
Michael Hoennig 2024-04-07 13:13:49 +02:00
parent d565099f3b
commit 25823342e7

View File

@ -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());
}