Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit c788029

Browse files
author
mikesamuel@gmail.com
committed
logging for IE
1 parent 077ac02 commit c788029

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

js-modules/numberLines.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function numberLines(node, opt_startLineNum) {
5656
var firstLine = text.substring(0, match.index);
5757
node.nodeValue = firstLine;
5858
var tail = text.substring(match.index + match[0].length);
59+
console.log('split "' + text.replace(/\r\n?|\n/g, '\\n') + '" into "' + firstLine + '" and "' + tail.replace(/\r\n?|\n/g, '\\n') + '"');
5960
if (tail) {
6061
var parent = node.parentNode;
6162
parent.insertBefore(

0 commit comments

Comments
 (0)