Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / vstf / vstf_scripts / vstf / common / pyhtml.py
index f3adee8..b216229 100644 (file)
@@ -14,22 +14,124 @@ doc_type = '<!DOCTYPE HTML>\n'
 default_title = "Html Page"
 charset = '<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />\n'
 
-html4_tags = {'a', 'abbr', 'acronym', 'address', 'area', 'b', 'base', 'bdo', 'big',
-              'blockquote', 'body', 'br', 'button', 'caption', 'cite', 'code', 'col',
-              'colgroup', 'dd', 'del', 'div', 'dfn', 'dl', 'dt', 'em', 'fieldset',
-              'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head',
-              'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd',
-              'label', 'legend', 'li', 'link', 'map', 'menu', 'menuitem', 'meta',
-              'noframes', 'noscript', 'object', 'ol', 'optgroup', 'option', 'p',
-              'param', 'pre', 'q', 'samp', 'script', 'select', 'small', 'span', 'strong',
-              'style', 'sub', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th',
-              'thead', 'title', 'tr', 'tt', 'ul', 'var'}
+html4_tags = {
+    'a',
+    'abbr',
+    'acronym',
+    'address',
+    'area',
+    'b',
+    'base',
+    'bdo',
+    'big',
+    'blockquote',
+    'body',
+    'br',
+    'button',
+    'caption',
+    'cite',
+    'code',
+    'col',
+    'colgroup',
+    'dd',
+    'del',
+    'div',
+    'dfn',
+    'dl',
+    'dt',
+    'em',
+    'fieldset',
+    'form',
+    'frame',
+    'frameset',
+    'h1',
+    'h2',
+    'h3',
+    'h4',
+    'h5',
+    'h6',
+    'head',
+    'hr',
+    'html',
+    'i',
+    'iframe',
+    'img',
+    'input',
+    'ins',
+    'kbd',
+    'label',
+    'legend',
+    'li',
+    'link',
+    'map',
+    'menu',
+    'menuitem',
+    'meta',
+    'noframes',
+    'noscript',
+    'object',
+    'ol',
+    'optgroup',
+    'option',
+    'p',
+    'param',
+    'pre',
+    'q',
+    'samp',
+    'script',
+    'select',
+    'small',
+    'span',
+    'strong',
+    'style',
+    'sub',
+    'sup',
+    'table',
+    'tbody',
+    'td',
+    'textarea',
+    'tfoot',
+    'th',
+    'thead',
+    'title',
+    'tr',
+    'tt',
+    'ul',
+    'var'}
 disused_tags = {'isindex', 'font', 'dir', 's', 'strike',
                 'u', 'center', 'basefont', 'applet', 'xmp'}
-html5_tags = {'article', 'aside', 'audio', 'bdi', 'canvas', 'command', 'datalist', 'details',
-              'dialog', 'embed', 'figcaption', 'figure', 'footer', 'header',
-              'keygen', 'mark', 'meter', 'nav', 'output', 'progress', 'rp', 'rt', 'ruby',
-              'section', 'source', 'summary', 'details', 'time', 'track', 'video', 'wbr'}
+html5_tags = {
+    'article',
+    'aside',
+    'audio',
+    'bdi',
+    'canvas',
+    'command',
+    'datalist',
+    'details',
+    'dialog',
+    'embed',
+    'figcaption',
+    'figure',
+    'footer',
+    'header',
+    'keygen',
+    'mark',
+    'meter',
+    'nav',
+    'output',
+    'progress',
+    'rp',
+    'rt',
+    'ruby',
+    'section',
+    'source',
+    'summary',
+    'details',
+    'time',
+    'track',
+    'video',
+    'wbr'}
 
 nl = '\n'
 tags = html4_tags | disused_tags | html5_tags
@@ -105,7 +207,8 @@ class Tag(list):
         result = ''
         if self.tag_name:
             result += '<%s%s%s>' % (self.tag_name,
-                                    self._render_attr(), self._self_close() * ' /')
+                                    self._render_attr(),
+                                    self._self_close() * ' /')
         if not self._self_close():
             isnl = True
             for c in self: