Пример #1
0
 def visit_document(self, node):
     if 'title' in node:
         self.metatags.insert(0, tag.title(node['title']))
         self.title = node['title']
     else:
         self.title = ''
     self.default_visit(node)
Пример #2
0
 def visit_document(self, node):
     if 'title' in node:
         self.metatags.insert(0, tag.title(node['title']))
         self.title = node['title']
     else:
         self.title = ''
     self.expand_id_to_anchor = False
     self.default_visit(node)
Пример #3
0
 def visit_document(self, node):
     if 'title' in node:
         self.metatags.insert(0, tag.title(node['title']))
         self.title = node['title']
     else:
         self.title = ''
     self.expand_id_to_anchor = False
     self.default_visit(node)
Пример #4
0
 def setTitle(self, title):
     if self.title is None:
         self.title = tag.title()
         self.head.append(self.title)
     if self.header is None:
         self.header = tag.h3()
         self.body.append(self.header)
     self.title.children = [title]
     self.header.children = [title]