Skip to content

Commit

Permalink
Merge pull request #528 from elgonzo/master
Browse files Browse the repository at this point in the history
HtmlDocument.CreateComment without spaces
  • Loading branch information
JonathanMagnan authored Dec 21, 2023
2 parents ce12031 + 65397ad commit 7763d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HtmlAgilityPack.Shared/HtmlDocument.cs
Original file line number Diff line number Diff line change
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 7763d4e

Please sign in to comment.