From 2a28ba3db9bf4827a2b4a42d9eed018edf6711a3 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 24 Apr 2016 14:13:22 +0200 Subject: [PATCH] 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. --- lisp/net/shr.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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. -- 2.39.2