]> code.delx.au - gnu-emacs/blobdiff - lisp/net/shr.el
Fix filling text with bidirectional characters in shr.el
[gnu-emacs] / lisp / net / shr.el
index d5c56362f60a2e7cf0f0c578d9cbb798805d9eca..330f7b5d84ba48298cdc4fbdd506f248f20e6b85 100644 (file)
@@ -244,7 +244,8 @@ DOM should be a parse tree as generated by
                                      (if (and (null shr-width)
                                               (not (shr--have-one-fringe-p)))
                                          (* (frame-char-width) 2)
-                                       0))))))
+                                       0)))))
+        bidi-display-reordering)
     (shr-descend dom)
     (shr-fill-lines start (point))
     (shr-remove-trailing-whitespace start (point))