Skip to content

Commit

Permalink
changed parseFloat to parseInt to prevent some inconsistency issue wi…
Browse files Browse the repository at this point in the history
…th different font sizes
  • Loading branch information
Ryan Zec committed Aug 15, 2015
1 parent 95dc102 commit cba0345
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 cba0345

Please sign in to comment.