Skip to content

Commit

Permalink
Merge pull request #604 from loganfranken/ie9-line-highlight
Browse files Browse the repository at this point in the history
Update New Line Character Used in Line Highlight Spacing
  • Loading branch information
Golmote committed Jun 21, 2015
2 parents a7064dd + e22af8b commit f1705eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -29,7 +29,7 @@ function highlightLines(pre, lines, classes) {

var line = document.createElement('div');

line.textContent = Array(end - start + 2).join(' \r\n');
line.textContent = Array(end - start + 2).join(' \n');
line.className = (classes || '') + ' line-highlight';

//if the line-numbers plugin is enabled, then there is no reason for this plugin to display the line numbers
Expand Down
2 changes: 1 addition & 1 deletion plugins/line-highlight/prism-line-highlight.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1705eb

Please sign in to comment.