Commit 9eb028f8 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

* lisp/net/shr.el (shr-fill-line):

Preserve text properties in folded lines (bug#24034).
parent 852111f3
......@@ -662,13 +662,12 @@ size, and full-buffer size."
;; Success; continue.
(when (= (preceding-char) ?\s)
(delete-char -1))
(let ((face (get-text-property (point) 'face))
(background-start (point)))
(let ((props (text-properties-at (point)))
(gap-start (point)))
(insert "\n")
(when face
(put-text-property background-start (point) 'face
`,(shr-face-background face))))
(when props
(add-text-properties gap-start (point) props)))
(setq start (point))
(shr-vertical-motion shr-internal-width)
(when (looking-at " $")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment