-
Notifications
You must be signed in to change notification settings - Fork 313
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
Add coloured deep diffs #1279
Comments
An implementation similar to #1261 should work but I will assume a line beginning with 12 spaces then a minur or plus gets coloured. |
Interesting. You'd need to have a recursive function that finds keys with the name of |
@jfalkenstein I am stumped. Your comment in the code mentions:
I have found that if I insert any Fore colour code into the string the block styling is broken. Do you recall where you found the details about trailing spaces, or do you have any other ideas for how this could be done? |
I believe I ran into this behavior through testing and following the debugger deep, deep into PyYaml code. Why? Is this proving a problem for you? |
@jfalkenstein Yes, it's proving to be a problem. Without delving as far into the internals of PyYaml, I think it is almost impossible. Any insertion of a colour code into the string causes PyYaml to not use the block styling. |
Yeah, I remember that being an ugly dungeon of deep recursion... |
HOWEVER, I think rather than doing that, I think it might be a better idea to apply the coloring AFTER the code comes out of py-yaml. |
Subject of the issue
See #1261
The text was updated successfully, but these errors were encountered: