mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Add tests for TextFormatter StripCRLF and ReplaceCRLFWithSpace
Also made the helper methods internal so they can be accessed from the test project.
This commit is contained in:
@@ -1185,7 +1185,7 @@ public class TextFormatter
|
||||
}
|
||||
|
||||
// TODO: Move to StringExtensions?
|
||||
private static string StripCRLF (string str, bool keepNewLine = false)
|
||||
internal static string StripCRLF (string str, bool keepNewLine = false)
|
||||
{
|
||||
List<Rune> runes = str.ToRuneList ();
|
||||
|
||||
@@ -1229,7 +1229,7 @@ public class TextFormatter
|
||||
}
|
||||
|
||||
// TODO: Move to StringExtensions?
|
||||
private static string ReplaceCRLFWithSpace (string str)
|
||||
internal static string ReplaceCRLFWithSpace (string str)
|
||||
{
|
||||
List<Rune> runes = str.ToRuneList ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user