@@ 60,7 60,8 @@ class PostParser(HTMLParser):
self.leader.append(data)
def post_data(self):
- return (self.title, self.date, "".join(self.leader), self.body)
+ leader = "".join(self.leader).strip()
+ return (self.title, self.date, leader, self.body)
@dataclass(repr=False)
class RenderedPost: