]> code.delx.au - gnu-emacs/commitdiff
Always reset the bidi direction
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 28 Dec 2015 17:11:56 +0000 (18:11 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 28 Dec 2015 17:14:05 +0000 (18:14 +0100)
* eww.el (eww-display-html): Always reset the bidi direction
to `left-to-right' (bug#22257).

lisp/net/eww.el

index 5755a942ebe1d9502bcdb62486f638238c261de6..d4555772e9a00601767f2ed6caa6083f0a5c1348 100644 (file)
@@ -401,6 +401,7 @@ Currently this means either text/html or application/xhtml+xml."
        (source (and (null document)
                     (buffer-substring (point) (point-max)))))
     (with-current-buffer buffer
+      (setq bidi-paragraph-direction 'left-to-right)
       (plist-put eww-data :source source)
       (plist-put eww-data :dom document)
       (let ((inhibit-read-only t)