File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
from __future__ import absolute_import , print_function , unicode_literals
8
8
9
+ from .blkcntnr import BlockItemContainer
9
10
from .shared import lazyproperty , Parented , write_only_property
10
- from .text import Paragraph
11
11
12
12
13
13
class Table (Parented ):
@@ -92,22 +92,22 @@ def _tblPr(self):
92
92
return self ._tbl .tblPr
93
93
94
94
95
- class _Cell (Parented ):
95
+ class _Cell (BlockItemContainer ):
96
96
"""
97
97
Table cell
98
98
"""
99
99
def __init__ (self , tc , parent ):
100
- super (_Cell , self ).__init__ (parent )
100
+ super (_Cell , self ).__init__ (tc , parent )
101
101
self ._tc = tc
102
102
103
103
@property
104
104
def paragraphs (self ):
105
105
"""
106
106
List of paragraphs in the cell. A table cell is required to contain
107
- at least one block-level element. By default this is a single
108
- paragraph.
107
+ at least one block-level element and end with a paragraph. By
108
+ default, a new cell contains a single paragraph.
109
109
"""
110
- return [ Paragraph ( p , self ) for p in self . _tc . p_lst ]
110
+ return super ( _Cell , self ). paragraphs
111
111
112
112
@write_only_property
113
113
def text (self , text ):
You can’t perform that action at this time.
0 commit comments