Skip to content

Commit

Permalink
Remove extra whitespace from rustdoc breadcrumbs for copypasting
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Jan 24, 2025
1 parent 8231e85 commit a276a41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ h1, h2, h3, h4 {
.rustdoc-breadcrumbs {
grid-area: main-heading-breadcrumbs;
line-height: 1.25;
display: flex;
flex-wrap: wrap;
align-items: end;
padding-top: 5px;
}
.rustdoc-breadcrumbs a {
Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/templates/print_item.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="main-heading">
{% if !path_components.is_empty() %}
<span class="rustdoc-breadcrumbs">
<div class="rustdoc-breadcrumbs">
{% for (i, component) in path_components.iter().enumerate() %}
{% if i != 0 %}
::<wbr>
{% endif %}
<a href="{{component.path|safe}}index.html">{{component.name}}</a>
{% endfor %}
</span>
</div>
{% endif %}
<h1>
{{typ}}
Expand Down

0 comments on commit a276a41

Please sign in to comment.