From: Lars Magne Ingebrigtsen Date: Sun, 24 Apr 2016 12:13:22 +0000 (+0200) Subject: Use Unicode literals instead of hex values X-Git-Tag: emacs-26.0.90~2177 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2a28ba3db9bf4827a2b4a42d9eed018edf6711a3;p=emacs.git Use Unicode literals instead of hex values * lisp/net/shr.el (shr-tag-bdo): Use Unicode literals instead of hex values for greater readability. (shr-tag-bdi): Ditto. --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 3adc57397cf..bf05fe93bae 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1690,19 +1690,19 @@ The preference is a float determined from `shr-prefer-media-type'." (let* ((direction (dom-attr dom 'dir)) (char (cond ((equal direction "ltr") - #x202d) ; LRO + ?\N{LEFT-TO-RIGHT OVERRIDE}) ((equal direction "rtl") - #x202e)))) ; RLO + ?\N{RIGHT-TO-LEFT OVERRIDE})))) (when char - (insert #x2068 char)) ; FSI + LRO/RLO + (insert ?\N{FIRST STRONG ISOLATE} char)) (shr-generic dom) (when char - (insert #x202c #x2069)))) ; PDF + PDI + (insert ?\N{POP DIRECTIONAL FORMATTING} ?\N{POP DIRECTIONAL ISOLATE})))) (defun shr-tag-bdi (dom) - (insert #x2068) ; FSI + (insert ?\N{FIRST STRONG ISOLATE}) (shr-generic dom) - (insert #x2069)) ; PDI + (insert ?\N{POP DIRECTIONAL ISOLATE})) ;;; Table rendering algorithm.