From 66f9a749e34f0b28dce014c0ac1155413612e0b8 Mon Sep 17 00:00:00 2001 From: Nikita Bystrov Date: Mon, 27 Jul 2015 12:45:23 +0300 Subject: [PATCH] Preamble new line symbol Need use "\n" symbol for new line break --- lib/output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/output.js b/lib/output.js index 1d67b1b9..c302ea63 100644 --- a/lib/output.js +++ b/lib/output.js @@ -317,7 +317,7 @@ function OutputStream(options) { }; if (options.preamble) { - print(options.preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g, "\n")); + print(options.preamble.replace(/\\n|\r\n?|[\n\u2028\u2029]|\s*$/g, "\n")); } var stack = [];