mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 00:24:45 +00:00
visible test also for 'false'
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2562 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
9219ad658b
commit
84dcdb7a3a
1 changed files with 3 additions and 2 deletions
|
|
@ -20,7 +20,8 @@ from docutils import writers, nodes, languages, utils
|
|||
from docutils.writers import html4css1
|
||||
from docutils.parsers.rst.directives.html import MetaBody
|
||||
|
||||
import sys, os
|
||||
import sys
|
||||
import os
|
||||
|
||||
class NavInfo (object):
|
||||
"""store nav info"""
|
||||
|
|
@ -86,7 +87,7 @@ class HTMLNavTranslator (html4css1.HTMLTranslator):
|
|||
elif navattr=='name':
|
||||
self.nav_info.name = val
|
||||
elif navattr=='visible':
|
||||
self.nav_info.visible = (val!='0')
|
||||
self.nav_info.visible = val.lower() not in ['0', 'false']
|
||||
else:
|
||||
print >> sys.stderr, "unknown navigation attr", repr(navattr)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue