Fixed and closed #381: multi-line list elements are now rendered correctly even if they are the last element.
This commit is contained in:
parent
38de4fbb10
commit
66e9f5aaf6
2 changed files with 4 additions and 4 deletions
|
@ -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")]
|
||||
|
|
|
@ -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 = "<br />" + trimmedLine;
|
||||
tempLines[i - 1] += trimmedLine;
|
||||
}
|
||||
//}
|
||||
tempLines.RemoveAt(i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue