From 57c438be4fda45ed83eda83c236deae5299b22e1 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 30 May 2010 12:42:05 +0200 Subject: [PATCH] Test references to figures and tables by caption. --- tests/root/markup.txt | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/tests/root/markup.txt b/tests/root/markup.txt index f9dfaa896..e286d26c3 100644 --- a/tests/root/markup.txt +++ b/tests/root/markup.txt @@ -122,6 +122,8 @@ Inline markup * :token:`try statement ` * :ref:`admonition-section` * :ref:`here ` +* :ref:`my-figure` +* :ref:`my-table` * :doc:`subdir/includes` * ``:download:`` is tested in includes.txt * :option:`Python -c option ` @@ -142,12 +144,24 @@ Tables .. tabularcolumns:: |L|p{5cm}|R| -+----+----------------+----+ -| 1 | * Block elems | x | -| | * In table | | -+----+----------------+----+ -| 2 | Empty cells: | | -+----+----------------+----+ +.. table:: my table + + +----+----------------+----+ + | 1 | * Block elems | x | + | | * In table | | + +----+----------------+----+ + | 2 | Empty cells: | | + +----+----------------+----+ + + +Figures +------- + +.. _my-figure: + +.. figure:: img.png + + My caption of the figure Version markup