From fc819ea94ef1f466e422ed290e1fa01d5ec0302b Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 1 Mar 2016 10:48:36 +1100 Subject: [PATCH] Respect * lisp/net/shr.el (shr-tag-html): Respect the "auto" directional HTML setting. --- lisp/net/shr.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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." ((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) -- 2.39.2