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

Option to remove the plusses from the output? #35

Open
multimeric opened this issue Nov 23, 2020 · 1 comment
Open

Option to remove the plusses from the output? #35

multimeric opened this issue Nov 23, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@multimeric
Copy link

It seems the diff output uses both the green highlighting, and the "plus" formatting to indicate an addition. It would be lovely if we could keep the highlighting and remove the plusses on each character, or vice-versa. In my case, my downstream processing of the data (converting to HTML and LaTeX) seems to have difficulty with these characters. Similarly for the deletions.

I would be happy if we could --no-unicode-formatting or similar, indicating that we keep the ANSI colour codes.

@multimeric
Copy link
Author

I've tried messing around with the code, but not even setting writer.enabled = False seems to fix it internally.

However a nice hack I've discovered is that you can pipe the output through unidecode (which also has a Python API) to remove the combining marks.

@ESultanik ESultanik self-assigned this Nov 30, 2020
@ESultanik ESultanik added the enhancement New feature or request label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants