Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Commit

Permalink
fixed spans on newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
danielribeiro committed Apr 14, 2013
1 parent ed886d1 commit 002a47c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/github.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -2164,6 +2164,7 @@ window['_pr_isIE6'] = function () {
var t = $(this);
var text = $.trim(t.text());
t.contents().filter(function() { return this.nodeType == Node.TEXT_NODE; }).remove()
t.contents().filter(function() { return this.nodeName == "SPAN"; }).remove()
t.append("<pre></pre>");
t.find("pre").text(text);
})
Expand Down
1 change: 1 addition & 0 deletions src/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
var t = $(this);
var text = $.trim(t.text());
t.contents().filter(function() { return this.nodeType == Node.TEXT_NODE; }).remove()
t.contents().filter(function() { return this.nodeName == "SPAN"; }).remove()
t.append("<pre></pre>");
t.find("pre").text(text);
})
Expand Down

0 comments on commit 002a47c

Please sign in to comment.