From 990b5b92b4407e90dd9910a3a6288073f4d035dd Mon Sep 17 00:00:00 2001 From: Ghislain Nadeau Date: Sun, 4 Sep 2016 23:33:58 -0400 Subject: [PATCH] Fix Issue #198 --- lib/plato.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plato.js b/lib/plato.js index 59ec8a63..59543726 100644 --- a/lib/plato.js +++ b/lib/plato.js @@ -100,8 +100,8 @@ exports.inspect = function(files, outputDir, options, done) { var fileShort = file.replace(commonBasePath, ''); var fileSafe = fileShort.replace(/[^a-zA-Z0-9]/g,'_'); - var source = fs.readFileSync(file).toString().trim(); - if (!source) { + var source = fs.readFileSync(file).toString(); + if (!source.trim()) { log.info('Not parsing empty file "%s"', file); return; }