[PATCH 9/9] CSV Table: Add test with tab as delimiter
"Jarret \"Jax\" Renker via Docutils-develop" <[email protected]>
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | <gsPBmYAHcEjCmQS2VUXMQWHN93GkTxOXNrrkZaEUoHPwvMqOCaoBsl0Di6yfIWJ1V4TNrVk63TXImySmC4F66rrIPFek1UsReF26RlN71gs=@proton.me> |
---
.../test_rst/test_directives/test_tables.py | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
index 8a97ee812..b408c3fdb 100755
--- a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
+++ b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
@@ -993,6 +993,11 @@ def test_parser(self):
:delim: space
some csv data
+
+.. csv-table:: good delimiter
+ :delim: tab
+
+ some csv data
""",
"""\
<document source="test data">
@@ -1068,6 +1073,24 @@ def test_parser(self):
<entry>
<paragraph>
data
+ <table>
+ <title>
+ good delimiter
+ <tgroup cols="3">
+ <colspec colwidth="33">
+ <colspec colwidth="33">
+ <colspec colwidth="33">
+ <tbody>
+ <row>
+ <entry>
+ <paragraph>
+ some
+ <entry>
+ <paragraph>
+ csv
+ <entry>
+ <paragraph>
+ data
"""],
["""\
.. csv-table:: bad delimiter