From a8a3c031c40a95c387893a2be9606df3c50f09d6 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 25 May 2009 12:47:24 +0200 Subject: html: Fix confusion around `unspecified?'. * src/guile/skribilo/engine/html.scm (unspecified?): New procedure. This fixes the choice of a default title-number separator for chapters in `&html-generic-subdocument', as reported by James Haggerty . --- THANKS | 1 + src/guile/skribilo/engine/html.scm | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/THANKS b/THANKS index 28c1634..05011fc 100644 --- a/THANKS +++ b/THANKS @@ -10,5 +10,6 @@ I would also like to thank the following people who contributed to Skribilo through suggestions, bug reports or patches: R. Clayton + James Haggerty Klaus Schilling Barrie Stott diff --git a/src/guile/skribilo/engine/html.scm b/src/guile/skribilo/engine/html.scm index 4a9f99f..42f18b2 100644 --- a/src/guile/skribilo/engine/html.scm +++ b/src/guile/skribilo/engine/html.scm @@ -58,6 +58,14 @@ (if (not (engine? base-engine)) (error "bootstrap problem: base engine broken" base-engine)) +(define unspecified? + ;; XXX: Hack to recognize the unspecified value as understood by + ;; `engine-custom' et al. + (let ((really-unspecified? unspecified?)) + (lambda (x) + (or (really-unspecified? x) + (eq? x 'unspecified))))) + ;*---------------------------------------------------------------------*/ ;* html-file-default ... */ ;*---------------------------------------------------------------------*/ -- cgit v1.2.3