diff --git a/fanficdownloader/adapters/base_adapter.py b/fanficdownloader/adapters/base_adapter.py index e2e87b8e..46d0e526 100644 --- a/fanficdownloader/adapters/base_adapter.py +++ b/fanficdownloader/adapters/base_adapter.py @@ -352,8 +352,8 @@ class BaseSiteAdapter(Configurable): if t.name in ('center'): t['class']=t.name t.name='div' - # removes paired, but empty tags. - if t.string != None and len(t.string.strip()) == 0 : + # removes paired, but empty non paragraph tags. + if t.name not in ('p') and t.string != None and len(t.string.strip()) == 0 : t.extract() retval = soup.__str__('utf8').decode('utf-8')