Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix anchor href rendering for Section anchors #172

Merged
merged 1 commit into from

2 participants

@erebor

No description provided.

@bry4n bry4n merged commit 8eee539 into from
@bry4n
Owner

Thanks for fix!

@bry4n bry4n deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 1, 2012
  1. @erebor
This page is out of date. Refresh to see the latest.
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 %>
Something went wrong with that request. Please try again.