Skip to content

SpacesFixer: bugfix for new line vs trailing comment#229

Merged
jrfnl merged 1 commit into
developfrom
spacesfixer/bugfix-comment-vs-newline
Nov 8, 2020
Merged

SpacesFixer: bugfix for new line vs trailing comment#229
jrfnl merged 1 commit into
developfrom
spacesfixer/bugfix-comment-vs-newline

Conversation

@jrfnl

@jrfnl jrfnl commented Nov 8, 2020

Copy link
Copy Markdown
Member

Bug fix for a quite specific situation:

  • If a new line was the expected spacing
  • AND the "first" token was a slash comment
  • AND the "second" token was on the new line without indentation
  • THEN an error would be throw and if the fixer was invoked, a stray new line would be added.

Fixed now.

Includes additional unit tests safeguarding the fix.

Bug fix for a quite specific situation:
* If a new line was the expected spacing
* AND the "first" token was a slash comment
* AND the "second" token was on the new line without indentation
* THEN an error would be throw and if the fixer was invoked, a stray new line would be added.

Fixed now.

Includes additional unit tests safeguarding the fix.
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Nov 8, 2020
@jrfnl
jrfnl merged commit c677ffc into develop Nov 8, 2020
@jrfnl
jrfnl deleted the spacesfixer/bugfix-comment-vs-newline branch November 8, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant