diff options
author | Ludovic Court`es | 2007-06-11 14:08:23 +0000 |
---|---|---|
committer | Ludovic Court`es | 2007-06-11 14:08:23 +0000 |
commit | 9de369aeabb484175f8784c41dbad0592b5db91e (patch) | |
tree | 7be264f00b5ea49200a91093588c7acded54e652 | |
parent | d69664e7c753868f0246cdf897091c5132b0d001 (diff) | |
download | skribilo-9de369aeabb484175f8784c41dbad0592b5db91e.tar.gz skribilo-9de369aeabb484175f8784c41dbad0592b5db91e.tar.lz skribilo-9de369aeabb484175f8784c41dbad0592b5db91e.zip |
Lout engine: Work around bug with tables within floating figures.
* src/guile/skribilo/engine/lout.scm (table): Check whether N is within a
figure, in which case `@OneRow' must be preprended.
git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-72
-rw-r--r-- | src/guile/skribilo/engine/lout.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/guile/skribilo/engine/lout.scm b/src/guile/skribilo/engine/lout.scm index 664e046..6a8486f 100644 --- a/src/guile/skribilo/engine/lout.scm +++ b/src/guile/skribilo/engine/lout.scm @@ -2200,6 +2200,14 @@ ;; Mark each row with vertical spanning information (lout-table-mark-vspan! n) + (if (find1-up (lambda (n) + (is-markup? n 'figure)) + n) + ;; Work around a bug preventing `@VSpan' from working + ;; properly within floating figures: + ;; http://article.gmane.org/gmane.comp.type-setting.lout/1090 . + (display "\n@OneRow")) + (display "\n@Tbl # table\n") (if (number? border) |