Skip to content

Conversation

@pbottine
Copy link

This commit adds a new command-line flag --no-unicode that allows users to disable Unicode combining marks (strikethrough and underline characters) in the diff output while preserving ANSI color highlighting. This addresses the issue where the dual formatting (colors + unicode marks) creates difficulties when converting output to HTML and LaTeX formats.

The implementation:

  • Adds --no-unicode flag to the argument parser in main.py
  • Passes the enable_unicode parameter to the Printer constructor
  • Sets the CombiningMarkWriter.enabled property based on user preference

When --no-unicode is specified, only ANSI colors are used to highlight additions (green) and deletions (red), making the output easier to process downstream while maintaining visual differentiation.

Fixes #35

🤖 Generated with Claude Code

This commit adds a new command-line flag `--no-unicode` that allows users
to disable Unicode combining marks (strikethrough and underline characters)
in the diff output while preserving ANSI color highlighting. This addresses
the issue where the dual formatting (colors + unicode marks) creates
difficulties when converting output to HTML and LaTeX formats.

The implementation:
- Adds `--no-unicode` flag to the argument parser in __main__.py
- Passes the `enable_unicode` parameter to the Printer constructor
- Sets the `CombiningMarkWriter.enabled` property based on user preference

When `--no-unicode` is specified, only ANSI colors are used to highlight
additions (green) and deletions (red), making the output easier to process
downstream while maintaining visual differentiation.

Fixes #35

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@pbottine pbottine requested a review from ESultanik as a code owner November 24, 2025 19:57
@pbottine
Copy link
Author

cc: @smoelius

@ESultanik
Copy link
Collaborator

This PR doesn't seem to disable combining markers in unicode output, it disables all output, if I am reading the code changes correctly. I need to test it a bit more to confirm.

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.

Option to remove the plusses from the output?

3 participants