From 6e53232aaf3f3ec31678911643c1e1a9f04d6619 Mon Sep 17 00:00:00 2001 From: Ludovic Court`es Date: Mon, 20 Aug 2007 15:52:49 +0000 Subject: lout engine: Always use `@BypassNumber'. * src/guile/skribilo/engine/lout.scm (lout-block-before): Always use `@BypassNumber'. git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-85 --- src/guile/skribilo/engine/lout.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/guile/skribilo/engine/lout.scm b/src/guile/skribilo/engine/lout.scm index a93cde7..954329c 100644 --- a/src/guile/skribilo/engine/lout.scm +++ b/src/guile/skribilo/engine/lout.scm @@ -1362,12 +1362,10 @@ (output title e) (display " }\n") - (if (number? number) + (if number (format #t " @BypassNumber { ~a }\n" (markup-number-string n)) - (if (not number) - ;; this trick hides the section number - (display " @BypassNumber { } # unnumbered\n"))) + (display " @BypassNumber { } # unnumbered\n")) (cond ((string? ident) (begin -- cgit v1.2.3