diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index e887773..1447139 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1.408")] -[assembly: AssemblyFileVersion("3.0.1.408")] +[assembly: AssemblyVersion("3.0.1.409")] +[assembly: AssemblyFileVersion("3.0.1.409")] diff --git a/Core/Formatter.cs b/Core/Formatter.cs index 1622371..9b487f2 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -843,7 +843,7 @@ namespace ScrewTurn.Wiki { sb.Replace("", ""); } - ProcessLineBreaks(sb); + ProcessLineBreaks(sb, bareBones); if(addedNewLineAtEnd) { if(sb.ToString().EndsWith("
")) sb.Remove(sb.Length - 6, 6); @@ -1162,8 +1162,9 @@ namespace ScrewTurn.Wiki { /// Processes line breaks. /// /// The containing the text to process. - private static void ProcessLineBreaks(StringBuilder sb) { - if(AreSingleLineBreaksToBeProcessed()) { + /// A value indicating whether the formatting is being done in bare-bones mode. + private static void ProcessLineBreaks(StringBuilder sb, bool bareBones) { + if(bareBones || AreSingleLineBreaksToBeProcessed()) { // Replace new-lines only when not enclosed in tags Match match = NoSingleBr.Match(sb.ToString());