diff --git a/sites/royalroad.py b/sites/royalroad.py index 606a009..938ac95 100644 --- a/sites/royalroad.py +++ b/sites/royalroad.py @@ -73,18 +73,18 @@ class RoyalRoad(Site): self._clean(content) self._clean_spoilers(content, chapterid) - content = content.prettify() + content = str(content) author_note = soup.find_all('div', class_='author-note-portlet') if len(author_note) == 1: # Find the parent of chapter-content and check if the author's note is the first child div if 'author-note-portlet' in soup.find('div', class_='chapter-content').parent.find('div')['class']: - content = author_note[0].prettify() + '