8000 Changed tab to space conversion by QuentinC · Pull Request #1065 · gitblit-org/gitblit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Changed tab to space conversion #1065

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

Closed
wants to merge 3 commits into from
Closed

Conversation

QuentinC
Copy link
Contributor

Tabs are not always 4 spaces large. It completes the line to the 4th
character.

Tabs are not always 4 spaces large. It completes the line to the 4th
character.
@QuentinC
Copy link
Contributor Author

You can see the result here:
Gitblit (lines 14-16)

@QuentinC QuentinC closed this Apr 18, 2016
@QuentinC QuentinC reopened this Apr 18, 2016
} else {
retStr.append(inStr.charAt(i));
}

l = (l + 1) % tabLength;
if (inStr.charAt(i) == '\n')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you wrap this if with curly braces?

@gitblit
Copy link
Collaborator
gitblit commented Apr 20, 2016

This looks like a nice fix. Could you write a unit test or two to verify that it works like expected so in the future we don't accidentally break your improvement?

@QuentinC
Copy link
Contributor Author
QuentinC commented Apr 20, 2016

No problem. I'll do this on sunday !

Do you see a way to implement this ?

Would testing a tab for let's say, the 50 first positions be enough ?


De : James Moger notifications@github.com
Envoyé : mercredi 20 avril 2016 13:44
À : gitblit/gitblit
Cc : Quentin Canel; State change
Objet : Re: [gitblit/gitblit] Changed tab to space conversion (#1065)

This looks like a nice fix. Could you write a unit test or two to verify that it works like expected so in the future we don't accidentally break your improvement?

You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHubhttps://github.com//pull/1065#issuecomment-212392717

@QuentinC
Copy link
Contributor Author

I've added a simple tab->space conversion testing.

@QuentinC
Copy link
Contributor Author
QuentinC commented Jul 1, 2016

Hello,

Dou you plan to merge this for the 1.8.0 release ?

Thanks !

flaix added a commit to flaix/gitblit that referenced this pull request Aug 2, 2022
The contribution branch was rebased to current master.
This should close gitblit-org#1065 as merged.
@flaix flaix closed this in f0dce60 Aug 2, 2022
@flaix
Copy link
Member
flaix commented Aug 2, 2022

Closed as merged.

@flaix flaix added this to the 1.10.0 milestone Aug 2, 2022
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.

3 participants
0