File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -378,14 +378,17 @@ def get_description_or_abstract(
378
378
"because an item must have a description."
379
379
)
380
380
return ""
381
- elif abstract_delimiter :
382
- if (
381
+ elif (
382
+ abstract_delimiter
383
+ and (
383
384
excerpt_separator_position := in_page .markdown .find (abstract_delimiter )
384
- ) > - 1 :
385
- return markdown .markdown (
386
- in_page .markdown [:excerpt_separator_position ],
387
- output_format = "html5" ,
388
- )
385
+ )
386
+ > - 1
387
+ ):
388
+ return markdown .markdown (
389
+ in_page .markdown [:excerpt_separator_position ],
390
+ output_format = "html5" ,
391
+ )
389
392
# If chars count is unlimited, use the html content
390
393
elif in_page .content and chars_count == - 1 :
391
394
if chars_count is None or len (in_page .content ) < chars_count :
You can’t perform that action at this time.
0 commit comments