From 9280d163461d618a09d68dda47bb7310671c882d Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 15 Aug 2010 19:19:25 +0200 Subject: lout: Better support boolean and AST values for `date-line'. * src/guile/skribilo/engine/lout.scm (document): Better support boolean and AST values for DATE-LINE. --- src/guile/skribilo/engine/lout.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/guile/skribilo/engine/lout.scm b/src/guile/skribilo/engine/lout.scm index 047cfa7..d692358 100644 --- a/src/guile/skribilo/engine/lout.scm +++ b/src/guile/skribilo/engine/lout.scm @@ -1,7 +1,7 @@ ;;; lout.scm -- A Lout engine. ;;; -*- coding: iso-8859-1 -*- ;;; -;;; Copyright 2004, 2005, 2006, 2007, 2008, 2009 Ludovic Courtès +;;; Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010 Ludovic Courtès ;;; ;;; ;;; This program is free software; you can redistribute it and/or modify @@ -1170,9 +1170,10 @@ (if (memq doc-type '(report slides)) (let ((date-line (engine-custom e 'date-line))) (display " @DateLine { ") - (if (or (string? date-line) (ast? date-line)) - (output date-line e) - (display (if date-line "Yes" "No"))) + (case date-line + ((#t) (display "Yes")) + ((#f) (display "No")) + (else (output date-line e))) (display " }\n"))) ;; Output options specific to one of the document types. -- cgit v1.2.3