diff options
author | Eli Zaretskii <eliz@gnu.org> | 2015-12-29 18:49:57 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-12-29 18:49:57 +0200 |
commit | 88e2de2381a61445c20f8d35857ad57d581eafe1 (patch) | |
tree | abe3a90a4362b8dc25e5b01bdd3e4876e0a7ea2e /lisp/net | |
parent | 9fc2d2c0c735430b238bc4bc8a1d0085a95ae457 (diff) | |
download | emacs-88e2de2381a61445c20f8d35857ad57d581eafe1.tar.gz |
Fix filling text with bidirectional characters in shr.el
* lisp/net/shr.el (shr-insert-document): Bind
bidi-display-reordering to nil while filling lines. This is
required for when a line includes characters whose bidi
directionality is opposite to the base paragraph direction,
because columns are counted in the logical order. (Bug#22250)
Diffstat (limited to 'lisp/net')
-rw-r--r-- | lisp/net/shr.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index d5c56362f60..330f7b5d84b 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -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)) |