29 CssTemplate8 = "{0}{1}{2}{3}{4}{5}{6}{7}" |
29 CssTemplate8 = "{0}{1}{2}{3}{4}{5}{6}{7}" |
30 Placeholders = ('margin:0', 'padding:0', 'border:0', 'font-size:100%', |
30 Placeholders = ('margin:0', 'padding:0', 'border:0', 'font-size:100%', |
31 'font:inherit', 'vertical-align:baseline', 'line-height:1', |
31 'font:inherit', 'vertical-align:baseline', 'line-height:1', |
32 'outline:0', 'font-weight:inherit', 'font-style:inherit', |
32 'outline:0', 'font-weight:inherit', 'font-style:inherit', |
33 'font-family:inherit', 'vertical-align:baseline') |
33 'font-family:inherit', 'vertical-align:baseline') |
34 CssToIgnore = ('head', 'meta', 'noscript', 'script', 'style', 'link', |
34 TagsToIgnore = ('head', 'meta', 'noscript', 'script', 'style', 'link', |
35 'no-js', 'title', 'object', 'col', 'colgroup', 'option', |
35 'no-js', 'title', 'object', 'col', 'colgroup', 'option', |
36 'param', 'audio', 'basefont', 'isindex', 'svg', 'area', |
36 'param', 'audio', 'basefont', 'isindex', 'svg', 'area', |
37 'embed', 'br') |
37 'embed', 'br') |
38 |
38 |
39 def __init__(self, html, parent=None): |
39 def __init__(self, html, parent=None): |
40 """ |
40 """ |
41 Constructor |
41 Constructor |
42 |
42 |
58 indentation, placeholders = dlg.getData() |
58 indentation, placeholders = dlg.getData() |
59 |
59 |
60 # TODO: implement this |
60 # TODO: implement this |
61 self.__createSoup() |
61 self.__createSoup() |
62 |
62 |
63 alreadyDone = list(self.CssToIgnore) |
63 alreadyDone = list(self.TagsToIgnore) |
64 |
64 |
65 css = '@charset "utf-8";{0}'.format(os.linesep) |
65 css = '@charset "utf-8";{0}'.format(os.linesep) |
66 css += "/* {0} by {1}*/{2}".format( |
66 css += "/* {0} by {1}*/{2}".format( |
67 datetime.datetime.now().isoformat().split(".")[0], |
67 datetime.datetime.now().isoformat().split(".")[0], |
68 getpass.getuser(), |
68 getpass.getuser(), |