hex icon indicating copy to clipboard operation
hex copied to clipboard

Fixed misaligned paddings when formats other than prefixed hex are used

Open firefish111 opened this issue 1 year ago • 2 comments

When a line is shorter than the specifies column width (-c), and padding is required, the padding amount per byte was hardcoded to 5, which corresponds to the width of one prefixed hex byte plus a space. This causes misalignment when other formattings are used.

This fix selects the appropriate padding width based on the format type.

firefish111 avatar Feb 09 '24 14:02 firefish111

Just committed to fix the linter errors

firefish111 avatar Mar 06 '24 18:03 firefish111

Added a unit test to check for misaligned padding

firefish111 avatar Jun 09 '24 18:06 firefish111