From 7692eca5131a080d695ae1a679d6d98f488cc780 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Sun, 30 Mar 2014 22:34:55 +0200 Subject: [PATCH] Changed linebreak format to be compatible with ZeroBrane Studio 0.50+. --- MoaiUtils/DocExport/Exporters/ZeroBraneExporter.cs | 7 +------ MoaiUtils/MoaiUtils.sln | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/MoaiUtils/DocExport/Exporters/ZeroBraneExporter.cs b/MoaiUtils/DocExport/Exporters/ZeroBraneExporter.cs index 1a51fc6..54de67c 100644 --- a/MoaiUtils/DocExport/Exporters/ZeroBraneExporter.cs +++ b/MoaiUtils/DocExport/Exporters/ZeroBraneExporter.cs @@ -2,7 +2,6 @@ using System.IO; using System.Linq; using System.Text; -using System.Text.RegularExpressions; using MoaiUtils.LuaIO; using MoaiUtils.MoaiParsing; using MoaiUtils.MoaiParsing.CodeGraph; @@ -142,13 +141,9 @@ private static void AppendParameterInfo(StringBuilder result, Parameter paramete } } - private static readonly Regex newlineRegex = new Regex(@"\r\n?|\n", RegexOptions.Compiled); - - // For whatever reason, ZeroBrane expects line breaks to be marked with "
". - // It doesn't understand any other HTML, though. private static string ConvertString(string s) { if (s == null) return null; - return newlineRegex.Replace(s, "
"); + return s.Replace("\r", string.Empty); } } } \ No newline at end of file diff --git a/MoaiUtils/MoaiUtils.sln b/MoaiUtils/MoaiUtils.sln index 9304aee..7b4a9b4 100644 --- a/MoaiUtils/MoaiUtils.sln +++ b/MoaiUtils/MoaiUtils.sln @@ -49,7 +49,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(Performance) = preSolution - HasPerformanceSessions = true - EndGlobalSection EndGlobal