From db4b6f2d9d74770c0ce894f4e3a447766c60211e Mon Sep 17 00:00:00 2001 From: elgonzo <6129198+elgonzo@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:36:18 +0100 Subject: [PATCH] HtmlDocument.CreateComment without spaces --- src/HtmlAgilityPack.Shared/HtmlDocument.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HtmlAgilityPack.Shared/HtmlDocument.cs b/src/HtmlAgilityPack.Shared/HtmlDocument.cs index be32cc22..f6bb869f 100644 --- a/src/HtmlAgilityPack.Shared/HtmlDocument.cs +++ b/src/HtmlAgilityPack.Shared/HtmlDocument.cs @@ -503,7 +503,7 @@ public HtmlCommentNode CreateComment(string comment) if (!comment.StartsWith("")) { - comment = string.Concat(""); + comment = ""; } HtmlCommentNode c = CreateComment(); @@ -2227,4 +2227,4 @@ private enum ParseState #endregion } -} \ No newline at end of file +}