File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ class Paragraph(Base):
21
21
@modelspec .define
22
22
class Section (Base ):
23
23
"""
24
- A model of a section of the :class:`Document`. Will contain one :class:`Paragraph` or more
24
+ A model of a section of the :class:`Document`.
25
+ Will contain one :class:`Paragraph` or more.
25
26
26
27
Args:
27
28
id: The id of the section
Original file line number Diff line number Diff line change @@ -373,7 +373,11 @@ def _parse_definition(cls) -> str:
373
373
p = parse (cls .__doc__ )
374
374
375
375
# Extract the description, use the long description if available.
376
- return p .long_description if p .long_description else p .short_description
376
+ if p .long_description :
377
+ definition = p .short_description + p .long_description
378
+ else :
379
+ definition = p .short_description
380
+ return definition
377
381
378
382
@classmethod
379
383
def _parse_allowed_fields (cls ) -> Dict [str , Tuple [str , Any ]]:
You can’t perform that action at this time.
0 commit comments