diff --git a/index.js b/index.js index 38b0680..0cae525 100755 --- a/index.js +++ b/index.js @@ -33,7 +33,9 @@ function copy(text, options) { range = document.createRange(); selection = document.getSelection(); - mark = document.createElement("span"); + // mark = document.createElement("span"); + // copy to excel line breaks + mark = document.createElement("pre"); mark.textContent = text; // reset user styles for span element mark.style.all = "unset";