From a2a77ad374e6cbb928b69c46970eab16e815f0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Tue, 30 Jul 2019 10:20:19 +0100 Subject: [PATCH] Replace chars in ToString output so they don't produce markup formatting (#207) ***NO_CI*** --- .../Extensions/OutputExtensions.cs | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/source/nanoFramework.Tools.DebugLibrary.Shared/Extensions/OutputExtensions.cs b/source/nanoFramework.Tools.DebugLibrary.Shared/Extensions/OutputExtensions.cs index a14776f9..7e648e0a 100644 --- a/source/nanoFramework.Tools.DebugLibrary.Shared/Extensions/OutputExtensions.cs +++ b/source/nanoFramework.Tools.DebugLibrary.Shared/Extensions/OutputExtensions.cs @@ -29,11 +29,11 @@ public static string ToStringForOutput(this List 0) { // header - output.AppendLine("--------------------------------"); - output.AppendLine(":: Memory Map ::"); - output.AppendLine("--------------------------------"); + output.AppendLine("++++++++++++++++++++++++++++++++"); + output.AppendLine("++ Memory Map ++"); + output.AppendLine("++++++++++++++++++++++++++++++++"); output.AppendLine(" Type Start Size"); - output.AppendLine("--------------------------------"); + output.AppendLine("++++++++++++++++++++++++++++++++"); foreach (Commands.Monitor_MemoryMap.Range item in range) { @@ -72,13 +72,13 @@ public static string ToStringForOutput(this List 0) { // header - output.AppendLine("---------------------------------------------------------------"); - output.AppendLine(":: Flash Sector Map ::"); - output.AppendLine("---------------------------------------------------------------"); + output.AppendLine("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); + output.AppendLine("++ Flash Sector Map ++"); + output.AppendLine("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); // output in list format, ordered by region output.AppendLine(" Region Start Blocks Bytes/Block Usage"); - output.AppendLine("---------------------------------------------------------------"); + output.AppendLine("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); int i = 0; @@ -91,14 +91,14 @@ public static string ToStringForOutput(this List (item.m_flags & Commands.Monitor_FlashSectorMap.c_MEMORY_USAGE_MASK) == Commands.Monitor_FlashSectorMap.c_MEMORY_USAGE_BOOTSTRAP)) @@ -184,7 +184,7 @@ public static string ToStringForOutput(this DeviceConfiguration.NetworkConfigura if (networkConfiguration.StartupAddressMode != AddressMode.Invalid) { output.AppendLine("IPv4 configuration"); - output.AppendLine("------------------------------------"); + output.AppendLine("++++++++++++++++++++++++++++++++++++"); output.AppendLine($"address: {networkConfiguration.IPv4Address.ToString()}"); output.AppendLine($"subnet mask: {networkConfiguration.IPv4NetMask.ToString()}"); output.AppendLine($"gateway: {networkConfiguration.IPv4GatewayAddress.ToString()}"); @@ -193,7 +193,7 @@ public static string ToStringForOutput(this DeviceConfiguration.NetworkConfigura output.AppendLine(""); output.AppendLine("IPv6 configuration"); - output.AppendLine("------------------------------------"); + output.AppendLine("++++++++++++++++++++++++++++++++++++"); output.AppendLine($"address: {networkConfiguration.IPv6Address.ToString()}"); output.AppendLine($"subnet mask: {networkConfiguration.IPv6NetMask.ToString()}"); output.AppendLine($"gateway: {networkConfiguration.IPv6GatewayAddress.ToString()}");