aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-03-01 10:48:36 +1100
committerLars Ingebrigtsen2016-03-01 10:48:36 +1100
commitfc819ea94ef1f466e422ed290e1fa01d5ec0302b (patch)
treeb9368ca9b85c5a3a827b5ef04ce753792556eecd
parentf71dbb30eeb4b9885ae1c9c580f65c956008d0cf (diff)
downloademacs-fc819ea94ef1f466e422ed290e1fa01d5ec0302b.tar.gz
emacs-fc819ea94ef1f466e422ed290e1fa01d5ec0302b.zip
Respect <html dir=auto>
* lisp/net/shr.el (shr-tag-html): Respect the "auto" directional HTML setting.
-rw-r--r--lisp/net/shr.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index fc6fca7060e..ab04b9a065a 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1178,7 +1178,9 @@ ones, in case fg and bg are nil."
1178 ((equal dir "ltr") 1178 ((equal dir "ltr")
1179 (setq bidi-paragraph-direction 'left-to-right)) 1179 (setq bidi-paragraph-direction 'left-to-right))
1180 ((equal dir "rtl") 1180 ((equal dir "rtl")
1181 (setq bidi-paragraph-direction 'right-to-left)))) 1181 (setq bidi-paragraph-direction 'right-to-left))
1182 ((equal dir "auto")
1183 (setq bidi-paragraph-direction nil))))
1182 (shr-generic dom)) 1184 (shr-generic dom))
1183 1185
1184(defun shr-tag-body (dom) 1186(defun shr-tag-body (dom)