Skip to content

Commit

Permalink
Add safe to number rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
clubby789 committed Mar 21, 2023
1 parent 102c8fa commit 4212c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/templates/source.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<pre class="src-line-numbers">
{% for line in lines.clone() %}
{% if embedded %}
<span>{{line}}</span>
<span>{{line|safe}}</span>
{%~ else %}
<a href="#{{line}}" id="{{line}}">{{line}}</a>
<a href="#{{line|safe}}" id="{{line|safe}}">{{line|safe}}</a>
{%~ endif %}
{% endfor %}
</pre> {# #}
Expand Down

0 comments on commit 4212c1b

Please sign in to comment.