atom-hex icon indicating copy to clipboard operation
atom-hex copied to clipboard

Consecutive space (whitespace) are consolidated into one

Open nedzhang opened this issue 10 years ago • 4 comments

Looks like the white spaces are consolidated in the character view. There are many spaces after and between those "0". The in the ASCII column of the Hex 5.0, they appear to be just one.

image

nedzhang avatar Jan 23 '15 14:01 nedzhang

@nedzhang can you send me an example file that I can use to fix this bug?

AbeEstrada avatar Feb 17 '15 20:02 AbeEstrada

fixed this by changing these lines in hex-view.coffee

    if (v == 32)
      ascii += " "
    else if (v > 32 and v < 127) or v > 159

EDIT: There's now a pull request available #29 .

dlq84 avatar Aug 25 '16 09:08 dlq84

Also: if the spaces are at the beginning or end of a line, they are not shown.

Please accept PR #29, it looks good.

SteeveDroz avatar Sep 29 '16 07:09 SteeveDroz

Looks like the maintainer don't give a shit about this project anymore.

dlq84 avatar Oct 03 '16 15:10 dlq84