diff options
| author | Eli Zaretskii | 2015-12-29 18:49:57 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-29 18:49:57 +0200 |
| commit | 88e2de2381a61445c20f8d35857ad57d581eafe1 (patch) | |
| tree | abe3a90a4362b8dc25e5b01bdd3e4876e0a7ea2e | |
| parent | 9fc2d2c0c735430b238bc4bc8a1d0085a95ae457 (diff) | |
| download | emacs-88e2de2381a61445c20f8d35857ad57d581eafe1.tar.gz emacs-88e2de2381a61445c20f8d35857ad57d581eafe1.zip | |
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)
| -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 | |||
| 244 | (if (and (null shr-width) | 244 | (if (and (null shr-width) |
| 245 | (not (shr--have-one-fringe-p))) | 245 | (not (shr--have-one-fringe-p))) |
| 246 | (* (frame-char-width) 2) | 246 | (* (frame-char-width) 2) |
| 247 | 0)))))) | 247 | 0))))) |
| 248 | bidi-display-reordering) | ||
| 248 | (shr-descend dom) | 249 | (shr-descend dom) |
| 249 | (shr-fill-lines start (point)) | 250 | (shr-fill-lines start (point)) |
| 250 | (shr-remove-trailing-whitespace start (point)) | 251 | (shr-remove-trailing-whitespace start (point)) |