Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix anchor href rendering for Section anchors

  • Loading branch information...
commit badb59347000658203e293ea3c2537a8ac0bfd6a 1 parent 43bbbf4
@erebor erebor authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 templates/section.html.erb
View
7 templates/section.html.erb
@@ -1,11 +1,8 @@
-<% if !anchor.nil? %>
- <a name="<%= anchor %>">
-<% end %>
<div class="sect<%= level %>">
- <h<%= level + 1 %> id="<%= section_id %>"><%= name %></h<%= level + 1 %>>
<% if !anchor.nil? %>
- </a>
+ <a name='<%= anchor %>'></a>
<% end %>
+ <h<%= level + 1 %> id="<%= section_id %>"><%= name %></h<%= level + 1 %>>
<% if level == 1 %>
<div class="sectionbody"><%= content %></div>
<% else %>
Please sign in to comment.
Something went wrong with that request. Please try again.