From 32ccd363f5b29870d07372c5c15428371c55e2e7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 15 Sep 2015 17:12:52 +0800 Subject: [PATCH] JSDOC/TokenReader.vala --- JSDOC/TokenReader.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JSDOC/TokenReader.vala b/JSDOC/TokenReader.vala index e3e6096..bbdc179 100644 --- a/JSDOC/TokenReader.vala +++ b/JSDOC/TokenReader.vala @@ -288,7 +288,11 @@ namespace JSDOC { if (found === "") { return false; } - //print("WHITE = " + JSON.stringify(found)); + //print("WHITE = " + JSON.stringify(found)); + + // if we found a new line, then we could check if previous character was a ';' - if so we can drop it. + // otherwise generally keep it.. in which case it should reduce our issue with stripping new lines.. + if (this.collapseWhite) { found = " "; // this might work better if it was a '\n' ??? } -- 2.39.2