Skip to content

Commit

Permalink
Add class line to span-tags for line-numbers
Browse files Browse the repository at this point in the history
Update css
  • Loading branch information
Kienz committed Aug 18, 2013
1 parent b4029d0 commit f7b6bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/default/static/scripts/linenumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
numbered = source.innerHTML.split('\n');
numbered = numbered.map(function(item) {
counter++;
return '<span id="line' + counter + '"></span>' + item;
return '<span id="line' + counter + '" class="line"></span>' + item;
});

source.innerHTML = numbered.join('\n');
Expand Down
2 changes: 1 addition & 1 deletion templates/default/static/styles/jsdoc-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ h6
border-left: 3px #ddd solid;
}

.prettyprint code span
.prettyprint code span.line
{
display: inline-block;
}
Expand Down

0 comments on commit f7b6bd6

Please sign in to comment.