You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases when the contents of a header is much longer than the values in that column, it would be nice to format the header over multiple lines to reduce the overall width of the columns.
(println
(t/table [{:name:a:title"An Extra Long Title":align:right}] [{:a1} {:a2} {:a3}]))
Current output
|---------------------|
| An Extra Long Title |
|---------------------|
| 1 |
| 2 |
| 3 |
|---------------------|
Desired (example)
|------------|
| An Extra |
| Long Title |
|------------|
| 1 |
| 2 |
| 3 |
|------------|
Note that in this example, the header is wrapped but also centered (which could be added with a new option :header-align :center.
In my use case I don't need doric to auto wrap, rather when I supply a header with a \n, doric should assume that implies wrapping is desired. Currently if you add a \n in the title, you get:
|---------------------|
| An Extra
Long Title |
|---------------------|
| 1 |
| 2 |
| 3 |
|---------------------|
The text was updated successfully, but these errors were encountered:
In some cases when the contents of a header is much longer than the values in that column, it would be nice to format the header over multiple lines to reduce the overall width of the columns.
Current output
Desired (example)
Note that in this example, the header is wrapped but also centered (which could be added with a new option
:header-align :center
.In my use case I don't need doric to auto wrap, rather when I supply a header with a
\n
, doric should assume that implies wrapping is desired. Currently if you add a\n
in the title, you get:The text was updated successfully, but these errors were encountered: