Skip to content

Commit

Permalink
Partial revert of #565
Browse files Browse the repository at this point in the history
  • Loading branch information
codecadwallader committed Dec 8, 2018
1 parent 717dd8a commit c073ea8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CodeMaid/Model/Comments/CommentFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ private bool Parse(ICommentLine line, int indentLevel = 0, int xmlTagLength = 0)
{
NewLine();
}
else if (Settings.Default.Formatting_CommentXmlSpaceTags)
{
Append(CodeCommentHelper.Spacer);
}

// Always consider the word after the opening tag as the first word to prevent an
// extra space before.
Expand Down Expand Up @@ -365,6 +361,11 @@ private bool ParseXml(CommentLineXml line, int indentLevel = 0)
// If true the tag should be alone on it's own line.
tagOnOwnLine |= isLiteralContent;

if (!tagOnOwnLine && Settings.Default.Formatting_CommentXmlSpaceTags)
{
Append(CodeCommentHelper.Spacer);
}

// If the literal content of an XML tag is set, output that content without formatting.
if (isLiteralContent)
{
Expand Down

0 comments on commit c073ea8

Please sign in to comment.