From 60a604c2f2882ae94a35f145079bd434add58ef7 Mon Sep 17 00:00:00 2001 From: holly-weisser Date: Wed, 21 Jun 2017 11:12:45 -0400 Subject: [PATCH] Let new lines through xmlEncode function. See github issue 296 (https://github.com/guyonroche/exceljs/issues/296). --- lib/utils/utils.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/utils.js b/lib/utils/utils.js index 4f966a8..2cca31c 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -79,7 +79,7 @@ var utils = module.exports = { }, xmlEncode: function(text) { // eslint-disable-next-line no-control-regex - return text.replace(/[<>&'"\x7F\x00-\x08\x0A-\x0C\x0E-\x1F]/g, function(c) { + return text.replace(/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/g, function(c) { switch (c) { case '<': return '<'; case '>': return '>'; diff --git a/package.json b/package.json index fe841a0..a16979d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "exceljs", - "version": "0.4.12", + "version": "0.4.13", "description": "Excel Workbook Manager - Read and Write xlsx and csv Files.", "private": false, "license": "MIT",