Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[Feature request] --disable-preserve-newlines to one line #74

Closed
JamieMason opened this Issue · 4 comments

3 participants

@JamieMason

Could it be configurable so that multiple consecutive empty lines can be replaced with one empty line rather than removed entirely?

e.g.

function Whatever ()
{
  var a = 1;


  this.something = 1;
  this.blah = function ()
  {

  }



  this.blah2 = function ()
  {

  }




};

becomes

function Whatever ()
{
  var a = 1;

  this.something = 1;
  this.blah = function ()
  {

  }

  this.blah2 = function ()
  {

  }

};

rather than

function Whatever ()
{
  var a = 1;
  this.something = 1;
  this.blah = function ()
  {
  }
  this.blah2 = function ()
  {
  }
};

Thanks again for your time.

@einars
Owner

Make sense to me as a default blank line preservation behavior, I'll take a stab at that.

@bitwiseman
Owner

@einars - Isn't this done (max_preserve_newlines)?

@einars
Owner

Yep, max_preserve_newlines = 2 (or is it 1?) should provide this behavior.

@bitwiseman
Owner

Looks like max_preserve_newlines = 2 does it, but this isn't exposed on the webpage yet. Can probably fix #199 at the same time as exposing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.