X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FTokenReader.vala;h=bbdc179a49422f4abeae718b97978c14e4b9aa5a;hp=e3e6096c910a9f55dafc430ae47919137f9412a2;hb=32ccd363f5b29870d07372c5c15428371c55e2e7;hpb=cec8dfd0781a5265d518eec19209e2aa59a05afc 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' ??? }