diff options
| author | Katsumi Yamaoka | 2016-07-20 22:56:42 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2016-07-20 22:56:42 +0000 |
| commit | 4157159a37b43712440da91a45a6d5f71eb96e8a (patch) | |
| tree | 731830f2367ef630e3fa087e1a7efaa8b5a29ec5 | |
| parent | 9a41cd1215e60415777bb139c0669100e347375b (diff) | |
| download | emacs-4157159a37b43712440da91a45a6d5f71eb96e8a.tar.gz emacs-4157159a37b43712440da91a45a6d5f71eb96e8a.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 2c8ff79763f..8718e4ffaea 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -636,13 +636,12 @@ 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 ((face (get-text-property (point) 'face)) | 639 | (let ((props (text-properties-at (point))) |
| 640 | (background-start (point))) | 640 | (gap-start (point))) |
| 641 | (insert "\n") | 641 | (insert "\n") |
| 642 | (shr-indent) | 642 | (shr-indent) |
| 643 | (when face | 643 | (when props |
| 644 | (put-text-property background-start (point) 'face | 644 | (add-text-properties gap-start (point) props))) |
| 645 | `,(shr-face-background face)))) | ||
| 646 | (setq start (point)) | 645 | (setq start (point)) |
| 647 | (shr-vertical-motion shr-internal-width) | 646 | (shr-vertical-motion shr-internal-width) |
| 648 | (when (looking-at " $") | 647 | (when (looking-at " $") |