[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 88e2de2: Fix filling text with bidirectional char
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-25 88e2de2: Fix filling text with bidirectional characters in shr.el |
Date: |
Tue, 29 Dec 2015 16:49:56 +0000 |
branch: emacs-25
commit 88e2de2381a61445c20f8d35857ad57d581eafe1
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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)
---
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 d5c5636..330f7b5 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 88e2de2: Fix filling text with bidirectional characters in shr.el,
Eli Zaretskii <=