diff --git a/src/librustdoc/templates/print_item.html b/src/librustdoc/templates/print_item.html
index c98c6db424a19..459b01a9960d2 100644
--- a/src/librustdoc/templates/print_item.html
+++ b/src/librustdoc/templates/print_item.html
@@ -16,12 +16,12 @@
{#- -#}
{#- -#}
{#- -#}
{% if !stability_since_raw.is_empty() %}
- {{- stability_since_raw|safe -}} ·
+ {{- stability_since_raw|safe -}} · {# -#}
{% endif %}
{%- match src_href -%}
{%- when Some with (href) -%}
- source
- {%- else -%} ·
+ source · {# -#}
+ {%- else -%}
{%- endmatch -%}
{#- -#}
[−] {#- -#}