Skip to content

Preformated text in ordered list in a table adds blank line in reST #1777

@lesserevil

Description

@lesserevil

Input:

<html><head></head><body>
<p>
<table>
<tr><td>
TEXT<ol><li><pre>pre</pre></li></ol>
</td></tr>
</table>
</p>
</body></html>

Command:

pandoc -f html -t rst tmp.htm

Output:

+--------------------------------------------------------------------------+
| TEXT                                                                     |
|                                                                          |
| #. ::                                                                    |
|                                                                          |
|        pre                                                               |
|                                                                          |

+--------------------------------------------------------------------------+

There's an extraneous blank line in the table.

Tested with latest from git.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions