评论来自:benwbooth@gmail.com
JIRA破坏了我的格式,看起来我无法编辑它以修复它。以下是我本意想表达的内容
当使用print-table将ASCII表格打印到标准输出时,如果任何值是含有任意新行的字符串,表格显示将损坏。例如
`
user=> (print-table [{:a "test" :b "test\ntest2"}])
| :a | :b |
|------+------------|
| test | test
test2 |
`
我预期的输出应该看起来像这样
user=> (print-table [{:a "test" :b "test\ntest2"}]) | :a | :b | |------+------------| | test | test + | | test2 |
右边界上的+符号表示该行跨多行继续。这与PostgreSQL的psql工具显示带多行行的表格的方式类似
`
labtrack=# select 'test' col1, E'test\ntest2' col2;
col1 | col2
------+-------
test | test +
| test2
(1 row)
`