Skip to content

Commit

Permalink
Rename SuppressNewlines to SuppressDivNewlines
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticmind committed Jan 23, 2024
1 parent bbf24b9 commit 871a0f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ReverseMarkdown.Test/ConverterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ public Task When_SuppressNewlineFlag_PrefixDiv_Should_Be_Empty()
var html = $"<div>the</div><div>fox</div><div>jumps</div><div>over</div>";
return CheckConversion(html, new Config
{
SuppressNewlines = true
SuppressDivNewlines = true
});
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/ReverseMarkdown/Config.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Linq;
using System;

Check warning on line 3 in src/ReverseMarkdown/Config.cs

View workflow job for this annotation

GitHub Actions / job (ubuntu-20.04, Linux)

The using directive for 'System' appeared previously in this namespace
using System.Linq;

Check warning on line 4 in src/ReverseMarkdown/Config.cs

View workflow job for this annotation

GitHub Actions / job (ubuntu-20.04, Linux)

The using directive for 'System.Linq' appeared previously in this namespace

namespace ReverseMarkdown
{
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/ReverseMarkdown/Converters/Div.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 871a0f6

Please sign in to comment.