Skip to content

Commit

Permalink
Fix long reference handling
Browse files Browse the repository at this point in the history
Closes #153.
  • Loading branch information
domenic committed Aug 8, 2023
1 parent 4cabebb commit bd1cd44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wattsi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1588,11 +1588,11 @@ TCrossReferences = record
NewLink := ConstructHTMLElement(eA);
Scratch := Default(Rope);
Scratch.Append('#refs');
Scratch.Append(ReferenceName);
Scratch.Append(@ReferenceName);
NewLink.SetAttributeDestructively('href', Scratch);
Scratch := Default(Rope);
Scratch.Append('[');
Scratch.Append(ReferenceName);
Scratch.Append(@ReferenceName);
Scratch.Append(']');
NewLink.AppendChild(TText.CreateDestructively(Scratch));
(Node.ParentNode as TElement).ReplaceChild(NewLink, Node);
Expand Down

0 comments on commit bd1cd44

Please sign in to comment.