(eww-tag-title): Remove newlines and extra whitespace from the
displayed title.
go back to the non-readable version.
(eww-display-html): Don't try to decode the text if we've been
passed in a pre-parsed DOM.
+ (eww-tag-title): Remove newlines and extra whitespace from the
+ displayed title.
2014-11-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
(dolist (sub cont)
(when (eq (car sub) 'text)
(setq eww-current-title (concat eww-current-title (cdr sub)))))
+ (setq eww-current-title
+ (replace-regexp-in-string
+ "^ \\| $" ""
+ (replace-regexp-in-string "[ \t\r\n]+" " " eww-current-title)))
(eww-update-header-line-format))
(defun eww-tag-body (cont)