entry.summary should default to only the first paragraph of intro text.
Current Behavior
entry.summary now defaults to all the text in entry.body, without whitespace between paragraphs.
html_entry.first_paragraph is functioning correctly:
>>> from publ import html_entry
>>> html_entry.first_paragraph("foo ba baa")
'foo ba baa'
>>> html_entry.first_paragraph("foo ba baa<p>bar")
'foo ba baa'
>>> html_entry.first_paragraph("<p>foo ba baa</p><p>bar")
'<p>foo ba baa</p>'
Expected Behavior
entry.summary
should default to only the first paragraph of intro text.Current Behavior
entry.summary
now defaults to all the text inentry.body
, without whitespace between paragraphs.html_entry.first_paragraph
is functioning correctly:so it's unclear what's happening here.
Possible Solution
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context