diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-12-05 16:10:23 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-12-05 16:10:23 +0100 |
| commit | d7c5358a57ec81449f52479f83e2de32f01d696e (patch) | |
| tree | 0d81ae96e7634731db41d0d7558cf65e63acf13b /src/librustdoc/html/render | |
| parent | 42fcba7a6731ec2a0fc6e75383fbd35dd75db41d (diff) | |
| download | rust-d7c5358a57ec81449f52479f83e2de32f01d696e.tar.gz rust-d7c5358a57ec81449f52479f83e2de32f01d696e.zip | |
Make all headings display the same by creating an anchor right beside them
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 131b1d608e6..b9a60a3fbdd 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -431,7 +431,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items: write!( w, "<h2 id=\"{id}\" class=\"section-header\">\ - <a href=\"#{id}\">{name}</a>\ + {name}<a href=\"#{id}\" class=\"anchor\">ยง</a>\ </h2>{ITEM_TABLE_OPEN}", id = cx.derive_id(my_section.id()), name = my_section.name(), |
