From c294d3bfb4c4f7036ae0765cd1c056e27e65fcdf Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Thu, 23 Jun 2016 05:49:46 +0900 Subject: [PATCH] Improve compact method for tests taking into account \r\n and \r --- src/Markdig.Tests/TestParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdig.Tests/TestParser.cs b/src/Markdig.Tests/TestParser.cs index 0575a664..150e4c6b 100644 --- a/src/Markdig.Tests/TestParser.cs +++ b/src/Markdig.Tests/TestParser.cs @@ -78,7 +78,7 @@ namespace Markdig.Tests private static string Compact(string html) { // Normalize the output to make it compatible with CommonMark specs - html = html.Replace("\r", "").Trim(); + html = html.Replace("\r\n", "\n").Replace(@"\r", @"\n").Trim(); html = Regex.Replace(html, @"\s+", ""); html = Regex.Replace(html, @"
  • \s+", "
  • "); html = html.Normalize(NormalizationForm.FormKD);