about summary refs log tree commit diff
path: root/src/librustdoc/html/templates/page.html
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-07-06 19:07:22 -0700
committerMichael Howell <michael@notriddle.com>2024-07-29 10:30:56 -0700
commit1d339b07ca84743710dc87dc0bc4c0597006ed59 (patch)
treeaf74e9afe05e1faefefb6480682873d551cb7274 /src/librustdoc/html/templates/page.html
parent9186001f3491c0eb996de6f61a457cecfb089333 (diff)
downloadrust-1d339b07ca84743710dc87dc0bc4c0597006ed59.tar.gz
rust-1d339b07ca84743710dc87dc0bc4c0597006ed59.zip
rustdoc: use `<wbr>` in sidebar headers
This also improves sidebar layout, so instead of

    BTreeM
    ap

you get this

    BTree
    Map
Diffstat (limited to 'src/librustdoc/html/templates/page.html')
-rw-r--r--src/librustdoc/html/templates/page.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/templates/page.html b/src/librustdoc/html/templates/page.html
index cdf01fa7a97..65c4304e202 100644
--- a/src/librustdoc/html/templates/page.html
+++ b/src/librustdoc/html/templates/page.html
@@ -98,7 +98,7 @@
             </a> {# #}
             {% endif %}
             <h2> {# #}
-                <a href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html">{{display_krate}}</a> {# #}
+                <a href="{{page.root_path|safe}}{{display_krate_with_trailing_slash|safe}}index.html">{{display_krate|wrapped|safe}}</a> {# #}
                 {% if !display_krate_version_number.is_empty() %}
                     <span class="version">{{+ display_krate_version_number}}</span>
                 {% endif %}