Browse Source

Always print two bytes when converting text to hex

master
Daniel Borchmann 8 months ago
parent
commit
ef2932fed7
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
  1. 2
      site-lisp/db-utils.el

2
site-lisp/db-utils.el

@ -193,7 +193,7 @@ might depend on the coding system of the current buffer."
(buffer-substring-no-properties (region-beginning) (region-end))
(read-from-minibuffer "String (ascii): "))))
(let ((result (->> text-string
(--map (format "%2X " it))
(--map (format "%02X " it))
(apply #'concat)
(string-trim-right))))
(if (use-region-p)

Loading…
Cancel
Save