mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-23 07:23:23 +02:00
Disable nook_img_fix if replace_br_with_p.
This commit is contained in:
parent
f611a1e26f
commit
1037fff11f
3 changed files with 5 additions and 3 deletions
|
|
@ -473,7 +473,8 @@ remove_transparency: true
|
|||
## confused and displays it on every page after that under the text
|
||||
## for the rest of the chapter. I doubt adding a div around the img
|
||||
## will break any other readers, but in case it does, the fix can be
|
||||
## turned off.
|
||||
## turned off. This setting is not used if replace_br_with_p is
|
||||
## true--replace_br_with_p also fixes the problem.
|
||||
nook_img_fix:true
|
||||
|
||||
[mobi]
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@ class BaseSiteAdapter(Configurable):
|
|||
|
||||
retval = soup.__str__('utf8').decode('utf-8')
|
||||
|
||||
if self.getConfig('nook_img_fix'):
|
||||
if self.getConfig('nook_img_fix') and not self.getConfig('replace_br_with_p'):
|
||||
# if the <img> tag doesn't have a div or a p around it,
|
||||
# nook gets confused and displays it on every page after
|
||||
# that under the text for the rest of the chapter.
|
||||
|
|
|
|||
|
|
@ -442,7 +442,8 @@ image_max_size: 580, 725
|
|||
## confused and displays it on every page after that under the text
|
||||
## for the rest of the chapter. I doubt adding a div around the img
|
||||
## will break any other readers, but in case it does, the fix can be
|
||||
## turned off.
|
||||
## turned off. This setting is not used if replace_br_with_p is
|
||||
## true--replace_br_with_p also fixes the problem.
|
||||
nook_img_fix:true
|
||||
|
||||
[mobi]
|
||||
|
|
|
|||
Loading…
Reference in a new issue