Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HeredocIndentationFixer] Should be run before NoTrailingWhitespaceFixer #4422

Closed
wants to merge 1 commit into from

Conversation

phansys
Copy link
Contributor

@phansys phansys commented May 30, 2019

With the proposed configuration, the expected result for this snippet

<?php
····$=·<<<'EOD'
first line

ending line
EOD;

should be

<?php
····$=·<<<'EOD'
········first line

········ending line
EOD;

instead of

<?php
····$=·<<<'EOD'
········first line
········
········ending line
EOD;

@SpacePossum
Copy link
Contributor

Hi!

Thanks for this PR, much appreciated!
Looking at the issue I wonder, maybe the HeredocIndentationFixer shouldn't indent empty lines so the NoTrailingWhitespaceFixer doesn't have to remove the added indent?

Ping @gharlan as author of HeredocIndentationFixer, WDYT?

@gharlan
Copy link
Contributor

gharlan commented Sep 4, 2019

Looking at the issue I wonder, maybe the HeredocIndentationFixer shouldn't indent empty lines so the NoTrailingWhitespaceFixer doesn't have to remove the added indent?

I agree here!

SpacePossum added a commit that referenced this pull request Oct 8, 2019
…(gharlan)

This PR was merged into the 2.15 branch.

Discussion
----------

HeredocIndentationFixer - remove whitespace in empty lines

replaces #4422

Commits
-------

8768cbc HeredocIndentationFixer - remove whitespace in empty lines
@SpacePossum
Copy link
Contributor

closing as #4548 has been merged :) thanks @gharlan

@SpacePossum SpacePossum closed this Oct 8, 2019
@phansys phansys deleted the heredoc_indentation branch January 31, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants