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

Fix squeeze state machine and squeeze indicator coloring #64

Merged
merged 2 commits into from
May 30, 2019

Conversation

awidegreen
Copy link
Contributor

Fixes squeeze state-machine for first/last

Consider equality for first and last character of a line.

If the first or last character of a line is not equal to previous character,
the state machine should be set back to probe as the line should not be
squeezed.

The unit tests has been expanded for testing the use case described in #62.
Further the body of all unit tests has been simplified.

Fixes #62


Consider color when printing squeeze indicator

When color option has been set to never, the squeeze indicator
character asterisk '*' should not be printed in color.

Fixes #63

Consider equality for first and last character of a line.

If the first or last character of a line is not equal to previous character,
the state machine should be set back to probe as the line should not be
squeezed.

The unit tests has been expanded for testing the use case described in sharkdp#62.
Further the body of all unit tests has been simplified.

Fixes sharkdp#62
When color option has been set to never, the squeeze indicator
character asterisk '*' should not be printed in color.

Fixes sharkdp#63
@sharkdp sharkdp merged commit c4028bb into sharkdp:master May 30, 2019
@sharkdp
Copy link
Owner

sharkdp commented May 30, 2019

Thank you so much!

@awidegreen awidegreen deleted the fix-squeeze-state-machine branch May 30, 2019 18:49
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.

Some colors are printed even if they're disabled Wrong hexdump
2 participants