Start table module documentation.
This commit is contained in:
parent
7abb406538
commit
85354ef0fa
2 changed files with 34 additions and 0 deletions
33
MODULES.md
33
MODULES.md
|
@ -596,3 +596,36 @@ predicate.
|
|||
|
||||
Returns a string created by repeating the string ```str``` exactly
|
||||
```rep``` number of times.
|
||||
|
||||
### Table
|
||||
|
||||
This module provides moderately complex terminal table rendering.
|
||||
|
||||
(*table-border-style* [style])
|
||||
|
||||
* ```style``` - symbol representing the style
|
||||
|
||||
Valid styles are:
|
||||
|
||||
* ```'debug``` - special style to see any rendering problems
|
||||
* ```'ascii``` - plain ASCII (7-bit)
|
||||
* ```'unicode``` - nice box-drawing table (UTF-8)
|
||||
|
||||
If invalid style is provided, ```'debug``` style is automatically
|
||||
substituted.
|
||||
|
||||
(table->string tbl
|
||||
[#:table-border #f]
|
||||
[#:row-border #f]
|
||||
[#:col-border #f]
|
||||
[#:border-style (*table-border-style*)]
|
||||
[#:ansi #f])
|
||||
|
||||
* ```#:table-border``` - if ```#t```, the table has outer border
|
||||
* ```#:row-border``` - if ```#t```, the rows are separated by borders
|
||||
* ```#:col-border``` - if ```#t```, the columns are separated by borders
|
||||
* ```#:border-style``` - which border style to use (see
|
||||
```*table-border-style*``` which is the default)
|
||||
* ```#:ansi``` - if ```#t```, all cell line strings are terminated
|
||||
with ```a:default```
|
||||
|
||||
|
|
|
@ -355,6 +355,7 @@
|
|||
(destroyed-mrs (dict-ref bi 'destroyed))
|
||||
(student-mrs (dict-ref bi 'students)))
|
||||
(print "Known members: " (length all-mrs))
|
||||
(newline)
|
||||
(print
|
||||
(table->string
|
||||
(filter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue