Implement row0-border.
This commit is contained in:
parent
965b0432fa
commit
4d7330a086
2 changed files with 10 additions and 2 deletions
|
@ -711,6 +711,8 @@ substituted.
|
||||||
[#:table-border #f]
|
[#:table-border #f]
|
||||||
[#:row-border #f]
|
[#:row-border #f]
|
||||||
[#:col-border #f]
|
[#:col-border #f]
|
||||||
|
[#:row0-border #f]
|
||||||
|
[#:col0-border #f]
|
||||||
[#:border-style (*table-border-style*)]
|
[#:border-style (*table-border-style*)]
|
||||||
[#:ansi #f])
|
[#:ansi #f])
|
||||||
|
|
||||||
|
@ -718,6 +720,8 @@ substituted.
|
||||||
* ```#:table-border``` - if ```#t```, the table has outer border
|
* ```#:table-border``` - if ```#t```, the table has outer border
|
||||||
* ```#:row-border``` - if ```#t```, the rows are separated by borders
|
* ```#:row-border``` - if ```#t```, the rows are separated by borders
|
||||||
* ```#:col-border``` - if ```#t```, the columns are separated by borders
|
* ```#:col-border``` - if ```#t```, the columns are separated by borders
|
||||||
|
* ```#:row0-border``` - if ```#t```, the first row is separated by border
|
||||||
|
* ```#:col0-border``` - if ```#t```, the first column is separated by border
|
||||||
* ```#:border-style``` - which border style to use (see
|
* ```#:border-style``` - which border style to use (see
|
||||||
```*table-border-style*``` which is the default)
|
```*table-border-style*``` which is the default)
|
||||||
* ```#:ansi``` - if ```#t```, all cell line strings are terminated
|
* ```#:ansi``` - if ```#t```, all cell line strings are terminated
|
||||||
|
|
|
@ -259,6 +259,8 @@
|
||||||
(let* ((table-border (get-keyword #:table-border args (lambda () #f)))
|
(let* ((table-border (get-keyword #:table-border args (lambda () #f)))
|
||||||
(row-border (get-keyword #:row-border args (lambda () #f)))
|
(row-border (get-keyword #:row-border args (lambda () #f)))
|
||||||
(column-border (get-keyword #:col-border args (lambda () #f)))
|
(column-border (get-keyword #:col-border args (lambda () #f)))
|
||||||
|
(row0-border (get-keyword #:row0-border args (lambda () #f)))
|
||||||
|
(col0-border (get-keyword #:col0-border args (lambda () #f)))
|
||||||
(border-style (get-keyword #:border-style args (lambda () (*table-border-style*))))
|
(border-style (get-keyword #:border-style args (lambda () (*table-border-style*))))
|
||||||
(ansi? (get-keyword #:ansi args (lambda () #f)))
|
(ansi? (get-keyword #:ansi args (lambda () #f)))
|
||||||
(stylepair (assq border-style table-borders-lookup))
|
(stylepair (assq border-style table-borders-lookup))
|
||||||
|
@ -293,8 +295,10 @@
|
||||||
(flatten (reverse res0))
|
(flatten (reverse res0))
|
||||||
"\n"))
|
"\n"))
|
||||||
(let* ((res0
|
(let* ((res0
|
||||||
(if (and row-border
|
(if (or (and row-border
|
||||||
(> idx 0))
|
(> idx 0))
|
||||||
|
(and row0-border
|
||||||
|
(= idx 1)))
|
||||||
(cons (table-row-delimiter/styled table-border
|
(cons (table-row-delimiter/styled table-border
|
||||||
column-border
|
column-border
|
||||||
cws
|
cws
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue