Skip to content

Commit

Permalink
updated summary
Browse files Browse the repository at this point in the history
 - Updated formatting of concatenated UmlComments to match the rest of the document.
  • Loading branch information
tbm0115 committed Aug 13, 2024
1 parent e6ec5e4 commit 33844f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions MtconnectTranspiler/Interpreters/MarkdownInterpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,17 @@ public virtual string Interpret(OwnedComment comment)

private string composeComment(OwnedComment comment, int headerDepth = 1)
{
const string newline = "
";
StringBuilder sb = new StringBuilder();
if (!string.IsNullOrEmpty(comment.Name))
{
string headerPrefix = new string('#', headerDepth);
sb.AppendLine($"{headerPrefix} {comment.Name}
");
sb.Append($"{newline}{headerPrefix} {comment.Name}{newline}{newline}");
}
sb.AppendLine(comment.Body + "
");
sb.Append(comment.Body + newline);
if (comment.SubComment != null)
{
sb.AppendLine(composeComment(comment.SubComment, headerDepth + 1) + "
");
sb.Append(composeComment(comment.SubComment, headerDepth + 1) + newline);
}
return sb.ToString();
}
Expand Down
2 changes: 1 addition & 1 deletion MtconnectTranspiler/MtconnectTranspiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>MTConnect Transpiler</Title>
<Version>2.4.0-prerelease.1</Version>
<Version>2.4.0-prerelease.2</Version>
<Authors>mtconnect, tbm0115</Authors>
<Company>MTConnect Institute; TAMS;</Company>
<Description>A library capable of parsing an XMI for the MTConnect Standard and passing it to an implemented transpiler.</Description>
Expand Down

0 comments on commit 33844f1

Please sign in to comment.