diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2018-04-13 22:27:21 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2018-04-13 22:27:21 +0200 |
commit | bdc2453fe83a0f50095d31b056af18fa2718d6db (patch) | |
tree | 94a3f9c3dbb6aa589dfae415f74f0a2e708b00e2 /lisp/net/shr.el | |
parent | 0eb68feed44a5c58931eb0cda19df95164958772 (diff) | |
download | emacs-bdc2453fe83a0f50095d31b056af18fa2718d6db.tar.gz emacs-bdc2453fe83a0f50095d31b056af18fa2718d6db.tar.bz2 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..
Diffstat (limited to 'lisp/net/shr.el')
-rw-r--r-- | lisp/net/shr.el | 12 |
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." ;; Success; continue. (when (= (preceding-char) ?\s) (delete-char -1)) - (let ((props `(face ,(get-text-property (point) 'face) - ;; Don't break the image-displayer property - ;; as it will cause `gnus-article-show-images' - ;; to show the two or more same images. - image-displayer - ,(get-text-property (point) 'image-displayer))) + (let ((props (copy-sequence (text-properties-at (point)))) (gap-start (point))) + ;; We don't want to use the faces on the indentation, because + ;; that's ugly, but we want all the other properties to be + ;; continuous so that links do not split up into many links + ;; (which makes navigation awkward). + (setq props (plist-put props 'face nil)) (insert "\n") (shr-indent) (add-text-properties gap-start (point) props)) |