Commit cb035f34 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Don't insert nil faces in shr

* shr.el (shr-insert-table): Don't add nil faces, because that
will show up in *Messages* as "Invalid face reference: nil [32
parent 4c3fae35
......@@ -1754,17 +1754,18 @@ The preference is a float determined from `shr-prefer-media-type'."
(dolist (line lines)
(let ((start (point)))
(propertize " "
'display `(space :align-to (,pixel-align))
'face (and (> (length line) 0)
(1- (length line)) 'face line)))
'shr-table-indent shr-table-id)
(let ((start (point))
(background (and (> (length line) 0)
(1- (length line)) 'face line))))
(space (propertize
" "
'display `(space :align-to (,pixel-align))
'shr-table-indent shr-table-id)))
(when background
(setq space (propertize space 'face background)))
(insert line space shr-table-vertical-line)
start (1- (point)) (nth 5 column) (nth 6 column)))
(forward-line 1))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment