This commit is contained in:
Kovid Goyal 2011-12-27 09:06:28 +05:30
parent 55e5bc8614
commit 19d5daae8e
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ class KOBO(USBMS):
' by default they are no longer displayed as there is no good reason to ' ' by default they are no longer displayed as there is no good reason to '
'see them. Enable if you wish to see/delete them.'), 'see them. Enable if you wish to see/delete them.'),
_('Show Recommendations') + _('Show Recommendations') +
':::'+_('Kobo no shows recomendations on the device. In some case these have ' ':::'+_('Kobo now shows recommendations on the device. In some case these have '
'files but in other cases they are just pointers to the web site to buy. ' 'files but in other cases they are just pointers to the web site to buy. '
'Enable if you wish to see/delete them.'), 'Enable if you wish to see/delete them.'),
] ]

View File

@ -78,7 +78,7 @@ def node_depth(node):
p = p.getparent() p = p.getparent()
return ans return ans
def html5_parse(data, max_nesting_depth=300): def html5_parse(data, max_nesting_depth=100):
import html5lib import html5lib
data = html5lib.parse(data, treebuilder='lxml').getroot() data = html5lib.parse(data, treebuilder='lxml').getroot()