aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/shr.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 8718e4ffaea..2c8ff79763f 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -636,12 +636,13 @@ size, and full-buffer size."
636 ;; Success; continue. 636 ;; Success; continue.
637 (when (= (preceding-char) ?\s) 637 (when (= (preceding-char) ?\s)
638 (delete-char -1)) 638 (delete-char -1))
639 (let ((props (text-properties-at (point))) 639 (let ((face (get-text-property (point) 'face))
640 (gap-start (point))) 640 (background-start (point)))
641 (insert "\n") 641 (insert "\n")
642 (shr-indent) 642 (shr-indent)
643 (when props 643 (when face
644 (add-text-properties gap-start (point) props))) 644 (put-text-property background-start (point) 'face
645 `,(shr-face-background face))))
645 (setq start (point)) 646 (setq start (point))
646 (shr-vertical-motion shr-internal-width) 647 (shr-vertical-motion shr-internal-width)
647 (when (looking-at " $") 648 (when (looking-at " $")