@@ -6882,12 +6882,21 @@ class Paragraph(AbstractStructureElement):
6882
6882
6883
6883
class Cell (AbstractStructureElement ):
6884
6884
"""A cell in a :class:`Row` in a :class:`Table`"""
6885
- pass
6886
6885
6886
+ def text (self , cls = 'current' , retaintokenisation = False , previousdelimiter = "" ,strict = False , correctionhandling = CorrectionHandling .CURRENT , normalize_spaces = False , hidden = False , trim_spaces = True ):
6887
+ if self .hastext (cls , strict , correctionhandling , hidden ):
6888
+ return super (AbstractStructureElement , self ).text (cls ,retaintokenisation , previousdelimiter ,strict , correctionhandling , normalize_spaces , hidden , trim_spaces )
6889
+ else :
6890
+ return previousdelimiter #force output of previous delimiter, needed for empty cells
6887
6891
6888
6892
class Row (AbstractStructureElement ):
6889
6893
"""A row in a :class:`Table`"""
6890
- pass
6894
+
6895
+ def text (self , cls = 'current' , retaintokenisation = False , previousdelimiter = "" ,strict = False , correctionhandling = CorrectionHandling .CURRENT , normalize_spaces = False , hidden = False , trim_spaces = True ):
6896
+ if self .hastext (cls , strict , correctionhandling , hidden ):
6897
+ return super (AbstractStructureElement , self ).text (cls ,retaintokenisation , previousdelimiter ,strict , correctionhandling , normalize_spaces , hidden , trim_spaces )
6898
+ else :
6899
+ return previousdelimiter #force output of previous delimiter, needed for empty cells
6891
6900
6892
6901
6893
6902
class TableHead (AbstractStructureElement ):
0 commit comments