1.1 --- a/moinformat/__init__.py Fri May 05 00:10:27 2017 +0200
1.2 +++ b/moinformat/__init__.py Fri May 05 17:00:32 2017 +0200
1.3 @@ -139,6 +139,10 @@
1.4 "regionstart", "regionend", "rule", "tablerow",
1.5 ]
1.6
1.7 + table_region_pattern_names = inline_pattern_names + [
1.8 + "tableattrs", "tablecell", "tableend"
1.9 + ]
1.10 +
1.11 def inline_patterns_for(self, name):
1.12 names = self.inline_pattern_names[:]
1.13 names[names.index(name)] = "%send" % name
1.14 @@ -389,7 +393,7 @@
1.15
1.16 while True:
1.17 cell = TableCell([])
1.18 - self.parse_region_details(items, cell, ["tableattrs", "tablecell", "tableend"])
1.19 + self.parse_region_details(items, cell, self.table_region_pattern_names)
1.20
1.21 # Handle the end of the row.
1.22
2.1 --- a/tests/test12.txt Fri May 05 00:10:27 2017 +0200
2.2 +++ b/tests/test12.txt Fri May 05 17:00:32 2017 +0200
2.3 @@ -1,5 +1,5 @@
2.4 ||<20%|2-2)^> Cell 1 || Cell 2 ||
2.5 -|| Cell 3 ||<#FF0000 width="15%"> Cell 4 ||
2.6 +|| '''Cell 3''' ||<#FF0000 width="15%"> ''Cell 4'' ||
2.7
2.8 || Not a table
2.9 || Also not a table