[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master fc819ea 2/3: Respect <html dir=auto>
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master fc819ea 2/3: Respect <html dir=auto> |
Date: |
Tue, 01 Mar 2016 00:27:46 +0000 |
branch: master
commit fc819ea94ef1f466e422ed290e1fa01d5ec0302b
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Respect <html dir=auto>
* lisp/net/shr.el (shr-tag-html): Respect the "auto"
directional HTML setting.
---
lisp/net/shr.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index fc6fca7..ab04b9a 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)