GNU bug report logs -
#14668
24.3; htmlfontify-buffer under emacs -nw produces blank page
Previous Next
Reported by: regcl <regcl <at> channing.harvard.edu>
Date: Wed, 19 Jun 2013 19:52:01 UTC
Severity: normal
Found in version 24.3
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Thanks. I'm surprised this doesn't work. There seem to be two issues:
"unspecified-fg" and "unspecified-bg" colours, and the fact that font
:height == 1 in ttys. This hack seems to fix it:
*** lisp/htmlfontify.el 2013-02-22 01:32:45 +0000
--- lisp/htmlfontify.el 2013-06-22 01:18:50 +0000
***************
*** 748,753 ****
--- 748,756 ----
member lower than that of the color you are processing) strange things
may happen."
;;(message "hfy-colour-vals");;DBUG
+ (cond
+ ((equal colour "unspecified-fg") (setq colour "black"))
+ ((equal colour "unspecified-bg") (setq colour "white")))
(let ((white (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals "white")))
(rgb16 (mapcar (lambda (I) (float (1+ I))) (hfy-colour-vals colour))))
(if rgb16
***************
*** 773,778 ****
--- 776,783 ----
"Derive a CSS font-size specifier from an Emacs font :height attribute HEIGHT.
Does not cope with the case where height is a function to be applied to
the height of the underlying font."
+ ;; In ttys, the default face has :height == 1.
+ (and (not (display-graphic-p)) (equal 1 height) (setq height 120))
(list
(cond
;;(t (cons "font-size" ": 1em"))
This bug report was last modified 11 years and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.