| 1 |
Testing |
| 2 |
======= |
| 3 |
|
| 4 |
.. |BAZ_ID| replace:: baz |
| 5 |
|
| 6 |
The tables below are properly formatted, but contain substitution references |
| 7 |
that are not defined in the document. If those substitutions are not ignored |
| 8 |
through configuration option, rstcheck should complain about the missing |
| 9 |
definitions. If they *are* marked as ignored through command line or |
| 10 |
configuration file, then everything should be good. |
| 11 |
|
| 12 |
In the past, rstcheck would fail to validate such tables when the user would |
| 13 |
ignore the missing references. This was because substitution references were |
| 14 |
simply replaced with "None", potentially leaving cells with a padding of an |
| 15 |
incorrect size. |
| 16 |
|
| 17 |
First, let's try with a grid table. |
| 18 |
|
| 19 |
+------+------------+ |
| 20 |
| Name | Identifier | |
| 21 |
+======+============+ |
| 22 |
| Foo | |FOO_ID| | |
| 23 |
+------+------------+ |
| 24 |
| Bar | |BAR_ID| | |
| 25 |
+------+------------+ |
| 26 |
| Baz | |BAZ_ID| | |
| 27 |
+------+------------+ |
| 28 |
|
| 29 |
Take two: with a simple table. |
| 30 |
|
| 31 |
==== ========== |
| 32 |
Name Identifier |
| 33 |
==== ========== |
| 34 |
Foo |FOO_ID| |
| 35 |
Bar |BAR_ID| |
| 36 |
Baz |BAZ_ID| |
| 37 |
==== ========== |