PlaidWeb / Publ

Flexible publishing system for the web
http://publ.beesbuzz.biz/
MIT License
41 stars 4 forks source link

Auto-summary now including the entire entry.body text #476

Closed fluffy-critter closed 2 years ago

fluffy-critter commented 2 years ago

Expected Behavior

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>'

so it's unclear what's happening here.

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

fluffy-critter commented 2 years ago

Fixed in aace9f3