This commit is contained in:
Kovid Goyal 2013-12-16 17:41:08 +05:30
parent 30e69528a9
commit 13deb9bab0

View File

@ -344,7 +344,7 @@ class Container(object): # {{{
return self.opf.xpath(expr, namespaces=OPF_NAMESPACES)
def has_name(self, name):
return name in self.name_path_map
return name and name in self.name_path_map
def relpath(self, path, base=None):
'''Convert an absolute path (with os separators) to a path relative to