eww readability tweak

* net/eww.el (eww-score-readability): Don't count comments positively.
This commit is contained in:
Lars Magne Ingebrigtsen 2014-11-04 00:46:20 +01:00
parent 704da6eeb4
commit 15eb2ec114
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2014-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el (eww-score-readability): Don't count comments positively.
* net/shr.el (shr-retransform-dom): Typo fix.
* net/eww.el (eww-score-readability): Parse SVC images correctly.

View file

@ -452,7 +452,7 @@ the like."
(defun eww-score-readability (node)
(let ((score -1))
(cond
((memq (car node) '(script head))
((memq (car node) '(script head comment))
(setq score -2))
((eq (car node) 'meta)
(setq score -1))