]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-markdown/test/table-format.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add new mail identities
[etc/vim.git] / .vim / bundle / vim-markdown / test / table-format.vader
1 Before:
2   let &gdefault = 1
3
4 After:
5   let &gdefault = 0
6
7 Given markdown;
8 | normal |no space|  2 spaces  ||
9 | - |-|  --- ||
10 | normal |no space|  2 spaces  ||
11
12 Execute (format unformatted table):
13   TableFormat
14
15 Expect (table is formatted):
16   | normal | no space | 2 spaces |  |
17   |--------|----------|----------|--|
18   | normal | no space | 2 spaces |  |
19
20 Given markdown;
21 | a | b |
22 |---|---|
23 | c | d |
24
25 Execute (format well formatted table):
26   TableFormat
27
28 Expect (table is not modified):
29   | a | b |
30   |---|---|
31   | c | d |
32
33 Given markdown;
34 | left |right|  center  ||
35 | :- | --: |:---:|:|
36 | left |right|  center  ||
37
38 Execute (format table with colons):
39   TableFormat
40
41 Expect (preserve colons to align text):
42   | left | right | center |   |
43   |:-----|------:|:------:|:--|
44   | left | right | center |   |