(shr-fold-text): Inhibit state from being altered.
This commit is contained in:
parent
76f9994d67
commit
05beff88de
2 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
* net/shr.el (shr-fold-text): New function.
|
||||
(shr-show-alt-text, shr-urlify, shr-tag-img): Use it to fold long
|
||||
alt/title texts.
|
||||
(shr-fold-text): Inhibit state from being altered.
|
||||
|
||||
* files.el (directory-files-recursively): Really check whether
|
||||
files are symlinks.
|
||||
|
|
|
@ -415,6 +415,8 @@ size, and full-buffer size."
|
|||
(defun shr-fold-text (text)
|
||||
(with-temp-buffer
|
||||
(let ((shr-indentation 0)
|
||||
(shr-state nil)
|
||||
(shr-start nil)
|
||||
(shr-internal-width (window-width)))
|
||||
(shr-insert text)
|
||||
(buffer-string))))
|
||||
|
|
Loading…
Add table
Reference in a new issue