Skip to content

Commit

Permalink
Merge pull request #668 from ryanzec/gh-pages
Browse files Browse the repository at this point in the history
changed parseFloat to parseInt to prevent some inconsistency issue with different font sizes
  • Loading branch information
Golmote committed Aug 15, 2015
2 parents 95dc102 + cba0345 commit 86bbd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/line-highlight/prism-line-highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function highlightLines(pre, lines, classes) {
var ranges = lines.replace(/\s+/g, '').split(','),
offset = +pre.getAttribute('data-line-offset') || 0;

var lineHeight = parseFloat(getComputedStyle(pre).lineHeight);
var lineHeight = parseInt(getComputedStyle(pre).lineHeight);

for (var i=0, range; range = ranges[i++];) {
range = range.split('-');
Expand Down

0 comments on commit 86bbd4c

Please sign in to comment.