From f30df0e8a3ad267022fb5049c52af49d1fefb2a2 Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Fri, 23 Oct 2009 08:51:59 +0000 Subject: [PATCH] Fixed regression introduced in r2678. When sections anchors were disabled in config, TOC entries did not work anymore. --- AssemblyVersion.cs | 4 ++-- Core/Formatter.cs | 17 ++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index e46f1de..ba4d76c 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.418")] -[assembly: AssemblyFileVersion("3.0.1.418")] +[assembly: AssemblyVersion("3.0.1.419")] +[assembly: AssemblyFileVersion("3.0.1.419")] diff --git a/Core/Formatter.cs b/Core/Formatter.cs index 5e5926d..8651720 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -897,15 +897,14 @@ namespace ScrewTurn.Wiki { /// The string builder. /// The anchor ID. private static void BuildHeaderAnchor(StringBuilder buffer, string id) { - if(Settings.EnableSectionAnchors) { - buffer.Append(@""); - } + buffer.Append(@""); + else buffer.Append(@""">"); } ///