Respect <html dir=auto>

* lisp/net/shr.el (shr-tag-html): Respect the "auto"
directional HTML setting.
This commit is contained in:
Lars Ingebrigtsen 2016-03-01 10:48:36 +11:00
parent f71dbb30ee
commit fc819ea94e

View file

@ -1178,7 +1178,9 @@ ones, in case fg and bg are nil."
((equal dir "ltr")
(setq bidi-paragraph-direction 'left-to-right))
((equal dir "rtl")
(setq bidi-paragraph-direction 'right-to-left))))
(setq bidi-paragraph-direction 'right-to-left))
((equal dir "auto")
(setq bidi-paragraph-direction nil))))
(shr-generic dom))
(defun shr-tag-body (dom)