diff options
| author | Katsumi Yamaoka | 2016-07-21 08:36:17 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2016-07-21 08:36:17 +0000 |
| commit | 9eb028f886858d6cb2a92063f5ea01c2f4b7d584 (patch) | |
| tree | 7badc4cf068e93ea918f172768d59166be7bf2b1 | |
| parent | 852111f3a6640d61ea1a1b2fd0cbf50623642927 (diff) | |
| download | emacs-9eb028f886858d6cb2a92063f5ea01c2f4b7d584.tar.gz emacs-9eb028f886858d6cb2a92063f5ea01c2f4b7d584.zip | |
* lisp/net/shr.el (shr-fill-line):
Preserve text properties in folded lines (bug#24034).
| -rw-r--r-- | lisp/net/shr.el | 9 |
1 files changed, 4 insertions, 5 deletions
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." | |||
| 662 | ;; Success; continue. | 662 | ;; Success; continue. |
| 663 | (when (= (preceding-char) ?\s) | 663 | (when (= (preceding-char) ?\s) |
| 664 | (delete-char -1)) | 664 | (delete-char -1)) |
| 665 | (let ((face (get-text-property (point) 'face)) | 665 | (let ((props (text-properties-at (point))) |
| 666 | (background-start (point))) | 666 | (gap-start (point))) |
| 667 | (insert "\n") | 667 | (insert "\n") |
| 668 | (shr-indent) | 668 | (shr-indent) |
| 669 | (when face | 669 | (when props |
| 670 | (put-text-property background-start (point) 'face | 670 | (add-text-properties gap-start (point) props))) |
| 671 | `,(shr-face-background face)))) | ||
| 672 | (setq start (point)) | 671 | (setq start (point)) |
| 673 | (shr-vertical-motion shr-internal-width) | 672 | (shr-vertical-motion shr-internal-width) |
| 674 | (when (looking-at " $") | 673 | (when (looking-at " $") |