differ icon indicating copy to clipboard operation
differ copied to clipboard

Issue when outputting differences in ascii format with unicode chars

Open damian-m-g opened this issue 9 years ago • 0 comments

Hello sir. Please take a look at this:

image

The outputt:

image

How it looks when you write this content to a file:

image

The problem, found in ascii.rb:

image

The inspect is the problem. Is fine with none unicode strings, but when unicode appear it mess. The workaround we made:

image

How the file where string was written looks:

image

If this is okay for you, I can make a pull request, I'm not sure if fills expectations, probably it could be improved. Cheers.

damian-m-g avatar Jun 09 '16 21:06 damian-m-g