Skip to content

Commit

Permalink
Trim anchor link in heading cells, fixes ipython#6324
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamrick committed Sep 16, 2014
1 parent f8754ab commit 0c47e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/html/static/notebook/js/textcell.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ define([
html = security.sanitize_html(html);
var h = $($.parseHTML(html));
// add id and linkback anchor
var hash = h.text().replace(/ /g, '-');
var hash = h.text().trim().replace(/ /g, '-');
h.attr('id', hash);
h.append(
$('<a/>')
Expand Down

0 comments on commit 0c47e54

Please sign in to comment.