aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-13 22:27:21 +0200
committerLars Ingebrigtsen2018-04-13 22:27:21 +0200
commitbdc2453fe83a0f50095d31b056af18fa2718d6db (patch)
tree94a3f9c3dbb6aa589dfae415f74f0a2e708b00e2
parent0eb68feed44a5c58931eb0cda19df95164958772 (diff)
downloademacs-bdc2453fe83a0f50095d31b056af18fa2718d6db.tar.gz
emacs-bdc2453fe83a0f50095d31b056af18fa2718d6db.zip
Tweak the fonts applied to shr indentation
* lisp/net/shr.el (shr-fill-line): Don't use fonts (especially link fonts) over indentation, because that's ugly..
-rw-r--r--lisp/net/shr.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 5ffaf153c38..fb17b856f44 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -736,13 +736,13 @@ size, and full-buffer size."
736 ;; Success; continue. 736 ;; Success; continue.
737 (when (= (preceding-char) ?\s) 737 (when (= (preceding-char) ?\s)
738 (delete-char -1)) 738 (delete-char -1))
739 (let ((props `(face ,(get-text-property (point) 'face) 739 (let ((props (copy-sequence (text-properties-at (point))))
740 ;; Don't break the image-displayer property
741 ;; as it will cause `gnus-article-show-images'
742 ;; to show the two or more same images.
743 image-displayer
744 ,(get-text-property (point) 'image-displayer)))
745 (gap-start (point))) 740 (gap-start (point)))
741 ;; We don't want to use the faces on the indentation, because
742 ;; that's ugly, but we want all the other properties to be
743 ;; continuous so that links do not split up into many links
744 ;; (which makes navigation awkward).
745 (setq props (plist-put props 'face nil))
746 (insert "\n") 746 (insert "\n")
747 (shr-indent) 747 (shr-indent)
748 (add-text-properties gap-start (point) props)) 748 (add-text-properties gap-start (point) props))