Skip to content

Commit

Permalink
Merge pull request #475 from Kienz/lineJumpFix
Browse files Browse the repository at this point in the history
Fix for jump to line in source file
  • Loading branch information
hegemonic committed Aug 19, 2013
2 parents c48bbc0 + f7b6bd6 commit 09b489a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
5 changes: 5 additions & 0 deletions templates/default/static/styles/jsdoc-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ h6
border-left: 3px #ddd solid;
}

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

.params, .props
{
border-spacing: 0;
Expand Down

0 comments on commit 09b489a

Please sign in to comment.