Disable nook_img_fix if replace_br_with_p.

This commit is contained in:
Jim Miller 2013-11-25 12:25:11 -06:00
parent f611a1e26f
commit 1037fff11f
3 changed files with 5 additions and 3 deletions

View file

@ -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]

View file

@ -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.

View file

@ -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]