diff options
| author | Stefan Monnier | 2021-04-10 20:06:21 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2021-04-10 20:06:35 -0400 |
| commit | d55d07af701d7e082a729c6dc69448f32f3935bc (patch) | |
| tree | 6b410f6cebd6e8f5e1930eecc2944098de9b264f | |
| parent | 5761e9004aa73d3aa7c34be9a064a1e768c3129c (diff) | |
| download | emacs-d55d07af701d7e082a729c6dc69448f32f3935bc.tar.gz emacs-d55d07af701d7e082a729c6dc69448f32f3935bc.zip | |
* lisp/net/shr.el (shr-insert-document): Explain why bidi-display-reordering
| -rw-r--r-- | lisp/net/shr.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index c122a19e90c..d1544764404 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -313,6 +313,11 @@ DOM should be a parse tree as generated by | |||
| 313 | (* (frame-char-width) 2)) | 313 | (* (frame-char-width) 2)) |
| 314 | 1)))) | 314 | 1)))) |
| 315 | (max-specpdl-size max-specpdl-size) | 315 | (max-specpdl-size max-specpdl-size) |
| 316 | ;; `bidi-display-reordering' is supposed to be only used for | ||
| 317 | ;; debugging purposes, but Shr's naïve filling algorithm | ||
| 318 | ;; cannot cope with the complexity of RTL text in an LTR | ||
| 319 | ;; paragraph, when a long line has been continued, so... | ||
| 320 | ;; this is the best we could do :-( | ||
| 316 | bidi-display-reordering) | 321 | bidi-display-reordering) |
| 317 | ;; Adjust for max width specification. | 322 | ;; Adjust for max width specification. |
| 318 | (when (and shr-max-width | 323 | (when (and shr-max-width |