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

Force 2 space indents to be 4 spaces #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rv0
Copy link
Contributor

@rv0 rv0 commented Oct 7, 2019

a little proof of concept I did today:

android2po does 2 space indentation in xml files and there's no way to configure it otherwise.
this is a limitation of the lxml library used.
android studio's default is 4 spaces, which can get tricky when working with a lot of people on a single project and trying to keep git history clean

the only way to add more spaces sadly is by processing the text line by line. But it works as demonstrated in this PR.

I would not merge this pull request just yet, but I'm hoping other people might find this code useful or suggestions are made to make this more configurable.

@miracle2k
Copy link
Owner

Hard to believe we'd have to resort to such things, but it seems you're right. I'd be ok merging it, but can we make it a configuration option?

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.

None yet

2 participants