(shr-dom-max-natural-width): New function.
(shr-tag-h1): Don't use variable-pitch fonts on fontless rendering.
(shr-tag-tt): New function.
+ (shr-tag-hr): Compute the right length when using fonts.
2015-02-10 Fabián Ezequiel Gallina <fgallina@gnu.org>
(defun shr-tag-hr (_dom)
(shr-ensure-newline)
- ;; FIXME: Should try to make a line of the required pixel size.
- (insert (make-string (window-width) shr-hr-line) "\n"))
+ (insert (make-string (if (not shr-use-fonts)
+ shr-internal-width
+ (1+ (/ shr-internal-width
+ shr-table-separator-pixel-width)))
+ shr-hr-line)
+ "\n"))
(defun shr-tag-title (dom)
(shr-heading dom 'bold 'underline))