]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/shr.el (shr-insert-document): Explain why bidi-display-reordering
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 11 Apr 2021 00:06:21 +0000 (20:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 11 Apr 2021 00:06:35 +0000 (20:06 -0400)
lisp/net/shr.el

index c122a19e90c59b6a91ab803876aa718908e03857..d1544764404c195ca25719b60fc2a4b11983d83e 100644 (file)
@@ -313,6 +313,11 @@ DOM should be a parse tree as generated by
                   (* (frame-char-width) 2))
                 1))))
         (max-specpdl-size max-specpdl-size)
+        ;; `bidi-display-reordering' is supposed to be only used for
+        ;; debugging purposes, but Shr's naïve filling algorithm
+        ;; cannot cope with the complexity of RTL text in an LTR
+        ;; paragraph, when a long line has been continued, so...
+        ;; this is the best we could do  :-(
         bidi-display-reordering)
     ;; Adjust for max width specification.
     (when (and shr-max-width