You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
When truncating an object using ObjectFormatter.format that exceeds the max_formatted_output_length remove any partial ANSI color codes.
This fixes an edge case where partial ANSI color codes eg \e[3 is printed to the terminal which corrupts the output.
eg calling object.inspect = "#<\e[33mClass\e[0m \e[36mname: \e[0m\"foobars\" \e[36mcount: \e[0m42>"
If this was truncated at the 19th char then the result would be: "#<\e[33mClass\e[0m \e[3"
This commit will remove the partial ANSI code so the result is now: "#<\e[33mClass\e[0m "
This fixes an edge case where
0 commit comments