From 871a0f675d5bcae17196faf59663e80429f73e3b Mon Sep 17 00:00:00 2001 From: mysticmnd Date: Tue, 23 Jan 2024 19:45:57 +0530 Subject: [PATCH] Rename SuppressNewlines to SuppressDivNewlines --- src/ReverseMarkdown.Test/ConverterTests.cs | 2 +- src/ReverseMarkdown/Config.cs | 4 +++- src/ReverseMarkdown/Converters/Div.cs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ReverseMarkdown.Test/ConverterTests.cs b/src/ReverseMarkdown.Test/ConverterTests.cs index 283d29d..2dbe7e3 100644 --- a/src/ReverseMarkdown.Test/ConverterTests.cs +++ b/src/ReverseMarkdown.Test/ConverterTests.cs @@ -1348,7 +1348,7 @@ public Task When_SuppressNewlineFlag_PrefixDiv_Should_Be_Empty() var html = $"
the
fox
jumps
over
"; return CheckConversion(html, new Config { - SuppressNewlines = true + SuppressDivNewlines = true }); } } diff --git a/src/ReverseMarkdown/Config.cs b/src/ReverseMarkdown/Config.cs index 70886f8..c92308b 100644 --- a/src/ReverseMarkdown/Config.cs +++ b/src/ReverseMarkdown/Config.cs @@ -1,5 +1,7 @@ using System; using System.Linq; +using System; +using System.Linq; namespace ReverseMarkdown { @@ -9,7 +11,7 @@ public class Config public bool GithubFlavored { get; set; } = false; - public bool SuppressNewlines { get; set; } = false; + public bool SuppressDivNewlines { get; set; } = false; public bool RemoveComments { get; set; } = false; diff --git a/src/ReverseMarkdown/Converters/Div.cs b/src/ReverseMarkdown/Converters/Div.cs index 689eaa0..4badf16 100644 --- a/src/ReverseMarkdown/Converters/Div.cs +++ b/src/ReverseMarkdown/Converters/Div.cs @@ -48,7 +48,7 @@ public override string Convert(HtmlNode node) { prefix = string.Empty; } - else if (Converter.Config.SuppressNewlines) + else if (Converter.Config.SuppressDivNewlines) { prefix = string.Empty; }