Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Yaml] chomp newlines only at the end of YAML documents#18828

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.3fromxabbuh:issue-18784
May 23, 2016

Conversation

@xabbuh
Copy link
Member

QA
Branch?2.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#18784
LicenseMIT
Doc PR

@theofidry
Copy link
Contributor

theofidry commentedMay 21, 2016
edited
Loading

It does fix the issue 👍

return'' !==$ltrimmedLine &&$ltrimmedLine[0] ==='#';
}

privatefunctionisCurrentLineLastLineInDocument()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Let's "nitpick" a bit: wouldisLastDocumentLine() be a better name forisCurrentLineLastLineInDocument()?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not sure, we don't pass any argument so it's not really clear to what the method name refers to imo. Note that theisCurrentLine prefix is a common pattern in the parser (e.g.isCurrentLineComment(),isCurrentLineBlank() and so on).

javiereguiluz reacted with thumbs up emoji

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

OK then.

@javiereguiluz
Copy link
Member

👍

Status: reviewed

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commita4b1fa6 intosymfony:2.3May 23, 2016
fabpot added a commit that referenced this pull requestMay 23, 2016
…abbuh)This PR was merged into the 2.3 branch.Discussion----------[Yaml] chomp newlines only at the end of YAML documents| Q             | A| ------------- | ---| Branch?       | 2.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#18784| License       | MIT| Doc PR        |Commits-------a4b1fa6 chomp newlines only at the end of YAML documents
@xabbuhxabbuh deleted the issue-18784 branchMay 23, 2016 08:50
This was referencedMay 26, 2016
This was referencedJun 6, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@theofidry@javiereguiluz@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp