From: Katsumi Yamaoka Date: Thu, 21 Jul 2016 08:36:17 +0000 (+0000) Subject: * lisp/net/shr.el (shr-fill-line): X-Git-Tag: emacs-26.0.90~1840^2~29 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9eb028f886858d6cb2a92063f5ea01c2f4b7d584;p=emacs.git * lisp/net/shr.el (shr-fill-line): Preserve text properties in folded lines (bug#24034). --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 68972020db3..07009d06be9 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -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") (shr-indent) - (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 " $")