1.1 --- a/moinformat/parsers/table.py Mon Oct 25 00:55:44 2021 +0200
1.2 +++ b/moinformat/parsers/table.py Mon Oct 25 01:26:47 2021 +0200
1.3 @@ -58,6 +58,15 @@
1.4 while True:
1.5 self.parse_region_details(cell, self.region_pattern_names)
1.6
1.7 + # Suppress any initial paragraph break within a table cell. This is
1.8 + # caused by a blank line which might be employed for clarity.
1.9 +
1.10 + first = cell.node(0)
1.11 +
1.12 + if isinstance(first, Break):
1.13 + cell.remove(first)
1.14 + cell.padding += "\n"
1.15 +
1.16 # Detect the end of the table.
1.17
1.18 pattern = self.matching_pattern()