Fixed regression introduced in r2678. When sections anchors were disabled in config, TOC entries did not work anymore.
This commit is contained in:
parent
dd12c79220
commit
f30df0e8a3
2 changed files with 10 additions and 11 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.1.418")]
|
[assembly: AssemblyVersion("3.0.1.419")]
|
||||||
[assembly: AssemblyFileVersion("3.0.1.418")]
|
[assembly: AssemblyFileVersion("3.0.1.419")]
|
||||||
|
|
|
@ -897,15 +897,14 @@ namespace ScrewTurn.Wiki {
|
||||||
/// <param name="buffer">The string builder.</param>
|
/// <param name="buffer">The string builder.</param>
|
||||||
/// <param name="id">The anchor ID.</param>
|
/// <param name="id">The anchor ID.</param>
|
||||||
private static void BuildHeaderAnchor(StringBuilder buffer, string id) {
|
private static void BuildHeaderAnchor(StringBuilder buffer, string id) {
|
||||||
if(Settings.EnableSectionAnchors) {
|
|
||||||
buffer.Append(@"<a class=""headeranchor"" id=""");
|
buffer.Append(@"<a class=""headeranchor"" id=""");
|
||||||
buffer.Append(id);
|
buffer.Append(id);
|
||||||
buffer.Append(@""" href=""#");
|
buffer.Append(@""" href=""#");
|
||||||
buffer.Append(id);
|
buffer.Append(id);
|
||||||
buffer.Append(@""" title=""");
|
buffer.Append(@""" title=""");
|
||||||
buffer.Append(Exchanger.ResourceExchanger.GetResource("LinkToThisSection"));
|
buffer.Append(Exchanger.ResourceExchanger.GetResource("LinkToThisSection"));
|
||||||
buffer.Append(@""">¶</a>");
|
if(Settings.EnableSectionAnchors) buffer.Append(@""">¶</a>");
|
||||||
}
|
else buffer.Append(@"""></a>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue