Skip to content

Commit

Permalink
Merge pull request #1 from elgonzo/elgonzo-patch-1
Browse files Browse the repository at this point in the history
HtmlDocument.CreateComment without spaces
  • Loading branch information
elgonzo committed Dec 14, 2023
2 parents ce12031 + db4b6f2 commit 65397ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HtmlAgilityPack.Shared/HtmlDocument.cs
Expand Up @@ -503,7 +503,7 @@ public HtmlCommentNode CreateComment(string comment)

if (!comment.StartsWith("<!--") && !comment.EndsWith("-->"))
{
comment = string.Concat("<!-- ", comment, " -->");
comment = "<!--" + comment + "-->";
}

HtmlCommentNode c = CreateComment();
Expand Down Expand Up @@ -2227,4 +2227,4 @@ private enum ParseState

#endregion
}
}
}

0 comments on commit 65397ad

Please sign in to comment.