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

Odd formatter behaviour #16

Open
mrjoshi opened this issue Dec 4, 2014 · 1 comment
Open

Odd formatter behaviour #16

mrjoshi opened this issue Dec 4, 2014 · 1 comment

Comments

@mrjoshi
Copy link

mrjoshi commented Dec 4, 2014

I have a line in my yaml:
something::else::mode: 0640
The formatter changes this to:
something::else::mode: 416

If I use '0640' the formatter removes the '', if I use 640, it makes no changes.

I can't quite see how 0640 goes to 416.

I'm using:
YEdit Feature 1.0.16 org.dadacoalition.yedit.feature.group YEdit Project

@oyse
Copy link
Owner

oyse commented Dec 4, 2014

Without checking anything I would guess that 0640 is interpreted as an
octal number and then converted to a decimal by the formatter.
4. des. 2014 12:34 skrev "mrjoshi" notifications@github.com:

I have a line in my yaml:
something::else::mode: 0640
The formatter changes this to:
something::else::mode: 416

If I use '0640' the formatter removes the '', if I use 640, it makes no
changes.

I can't quite see how 0640 goes to 416.


Reply to this email directly or view it on GitHub
#16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants