Fixed regression introduced in r2678. When sections anchors were disabled in config, TOC entries did not work anymore.

This commit is contained in:
Dario Solera 2009-10-23 08:51:59 +00:00
parent dd12c79220
commit f30df0e8a3
2 changed files with 10 additions and 11 deletions

View file

@ -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")]

View file

@ -897,15 +897,14 @@ namespace ScrewTurn.Wiki {
/// <param name="buffer">The string builder.</param>
/// <param name="id">The anchor ID.</param>
private static void BuildHeaderAnchor(StringBuilder buffer, string id) {
if(Settings.EnableSectionAnchors) {
buffer.Append(@"<a class=""headeranchor"" id=""");
buffer.Append(id);
buffer.Append(@""" href=""#");
buffer.Append(id);
buffer.Append(@""" title=""");
buffer.Append(Exchanger.ResourceExchanger.GetResource("LinkToThisSection"));
buffer.Append(@""">&#0182;</a>");
}
buffer.Append(@"<a class=""headeranchor"" id=""");
buffer.Append(id);
buffer.Append(@""" href=""#");
buffer.Append(id);
buffer.Append(@""" title=""");
buffer.Append(Exchanger.ResourceExchanger.GetResource("LinkToThisSection"));
if(Settings.EnableSectionAnchors) buffer.Append(@""">&#0182;</a>");
else buffer.Append(@"""></a>");
}
/// <summary>