aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-14 21:11:05 +0200
committerLars Ingebrigtsen2018-04-14 21:11:05 +0200
commit7e012d038422605e44afbc916769e51f6682dbce (patch)
tree406a736705d5ed6d6ed0df209abc7bc3b72df4ef
parent064ff7328160ebd893ae8578812bb41f469a5e48 (diff)
downloademacs-7e012d038422605e44afbc916769e51f6682dbce.tar.gz
emacs-7e012d038422605e44afbc916769e51f6682dbce.zip
Tweak shr link text property adjustments when folding
* lisp/net/shr.el (shr-fill-line): If a link starts at the first word on a new folded line, then don't copy the link properties to the newline inserted.
-rw-r--r--lisp/net/shr.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index fb17b856f44..d12ee684937 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -734,10 +734,10 @@ size, and full-buffer size."
734 (skip-chars-forward " ") 734 (skip-chars-forward " ")
735 (search-forward " " (line-end-position) 'move))) 735 (search-forward " " (line-end-position) 'move)))
736 ;; Success; continue. 736 ;; Success; continue.
737 (when (= (preceding-char) ?\s)
738 (delete-char -1))
739 (let ((props (copy-sequence (text-properties-at (point)))) 737 (let ((props (copy-sequence (text-properties-at (point))))
740 (gap-start (point))) 738 (gap-start (point)))
739 (when (= (preceding-char) ?\s)
740 (delete-char -1))
741 ;; We don't want to use the faces on the indentation, because 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 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 743 ;; continuous so that links do not split up into many links