From 66e9f5aaf6db6b8587a9f0bfcb542c31f789dbdf Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Wed, 14 Oct 2009 07:03:24 +0000 Subject: [PATCH] Fixed and closed #381: multi-line list elements are now rendered correctly even if they are the last element. --- AssemblyVersion.cs | 4 ++-- Core/Formatter.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index f1110fd..aeeef5a 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.0.353")] -[assembly: AssemblyFileVersion("3.0.0.353")] +[assembly: AssemblyVersion("3.0.0.354")] +[assembly: AssemblyFileVersion("3.0.0.354")] diff --git a/Core/Formatter.cs b/Core/Formatter.cs index ebdc10d..b81cc40 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -346,10 +346,10 @@ namespace ScrewTurn.Wiki { for(int i = tempLines.Count - 1; i >= 1; i--) { // Skip first line string trimmedLine = tempLines[i].Trim(); if(!trimmedLine.StartsWith("*") && !trimmedLine.StartsWith("#")) { - if(i != tempLines.Count - 1) { + //if(i != tempLines.Count - 1 && tempLines[i].Length > 0) { trimmedLine = "
" + trimmedLine; tempLines[i - 1] += trimmedLine; - } + //} tempLines.RemoveAt(i); } }