aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sx-question-print.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index b258fde..0ae0f04 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -299,7 +299,10 @@ where `value' is given `face' as its face.
(while args
(insert
(propertize (pop args) 'face 'sx-question-mode-header)
- (propertize (pop args) 'face (pop args)))))
+ (let ((header (pop args))
+ (face (pop args)))
+ (if face (propertize header 'face face)
+ header)))))
;;;; Printing and Font-locking the content (body)