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

Build Config with Cordova Tab Width Default #11

Merged
merged 2 commits into from
Oct 12, 2016

Conversation

jordanyee
Copy link
Member

As reported by kitsunde, splicon currently builds config.xml with 2-space wide tabs rather than the Cordova default of 4-space wide tabs.

Cordova's default of 4-space wide tabs should be respected.

@jordanyee
Copy link
Member Author

@alexblom Just updated the XML building to use Cordova's default of 4-space wide tabs. Mind reviewing before I merge?

renderOpts: {
'pretty': true,
'indent': ' ',
'newline': '\n'
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't this be CRLF on windows? You might need to detect the line ending so it doesn't make the whole file show up as changed.

Copy link
Member Author

@jordanyee jordanyee Oct 12, 2016

Choose a reason for hiding this comment

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

For now we're gonna leave this as a \n as we have other more pressing items.

That said, as @alexblom said we're moving towards treating config.xml as a temporary file. And with that in mind, once it is committed as a file with \n line endings, subsequent changes should (also using the \n line endings) just show the single lines changed.

@jordanyee jordanyee merged commit 2bf36d0 into master Oct 12, 2016
@jordanyee jordanyee deleted the fix/update-config-tab-width branch October 12, 2016 21:06
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

Successfully merging this pull request may close these issues.

2 participants