| Conditions | 1 |
| Total Lines | 28 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from unittest import TestCase |
||
| 15 | pandoc_glfm.main(doc) |
||
| 16 | return doc |
||
| 17 | |||
| 18 | def test_table(self): |
||
| 19 | doc = TableTest.conversion( |
||
| 20 | """ |
||
| 21 | | Name | Details | |
||
| 22 | | --- | --- | |
||
| 23 | | Item1 | This text is on one line | |
||
| 24 | | | This item has:<br><br>- Multiple items<br>- That we want listed separately | |
||
| 25 | """, |
||
| 26 | ) |
||
| 27 | text = convert_text( |
||
| 28 | doc, |
||
| 29 | input_format="panflute", |
||
| 30 | output_format="markdown", |
||
| 31 | ) |
||
| 32 | |||
| 33 | if version < (3, 6, 4): |
||
| 34 | self.assertEqual( |
||
| 35 | text, |
||
| 36 | """ |
||
| 37 | +-----------------------------------+-----------------------------------+ |
||
| 38 | | Name | Details | |
||
| 39 | +===================================+===================================+ |
||
| 40 | | Item1 | This text is on one line | |
||
| 41 | +-----------------------------------+-----------------------------------+ |
||
| 42 | | | This item has: | |
||
| 43 | | | | |
||
| 67 |