Improve tests: Add pretty_org fixtures to allow testing pretty printing
Until now we expected the .org file to print back to itself - we can't do that when the input is not pretty printed already - with the introduction of blocks with unindented content that will be the case.
This commit is contained in:
parent
c26d39284c
commit
ade2a1c875
14 changed files with 356 additions and 8 deletions
29
org/testdata/tables.pretty_org
vendored
Normal file
29
org/testdata/tables.pretty_org
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
#+CAPTION: table with separator before and after header
|
||||
|---+---+---|
|
||||
| a | b | c |
|
||||
|---+---+---|
|
||||
| 1 | 2 | 3 |
|
||||
|
||||
#+CAPTION: table with separator after header
|
||||
| a | b | c |
|
||||
|---+---+---|
|
||||
| 1 | 2 | 3 |
|
||||
|
||||
#+CAPTION: table without header (but separator before)
|
||||
|---+---+---|
|
||||
| 1 | 2 | 3 |
|
||||
|
||||
#+CAPTION: table without header
|
||||
| 1 | 2 | 3 |
|
||||
|
||||
#+CAPTION: table with aligned columns
|
||||
| left aligned | right aligned | center aligned |
|
||||
|--------------+---------------+----------------|
|
||||
| <l> | <r> | <c> |
|
||||
| 42 | 42 | 42 |
|
||||
| foobar | foobar | foobar |
|
||||
|
||||
#+CAPTION: table with right aligned columns (because numbers)
|
||||
| long column a | long column b | long column c |
|
||||
|---------------+---------------+---------------|
|
||||
| 1 | 2 | 3 |
|
Loading…
Add table
Add a link
Reference in a new issue