Compressed html up to 30%
This commit is contained in:
parent
7f2ea40f8e
commit
66c401706c
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ def rewriteCrossLinks(soup):
|
|||
|
||||
def writeHtml(content, fileName):
|
||||
global outDir
|
||||
open(os.path.join(outDir, fileName + ".html"), "w").write(content.prettify().encode('utf-8'))
|
||||
open(os.path.join(outDir, fileName + ".html"), "w").write(content.encode('utf-8'))
|
||||
|
||||
##############################################################################
|
||||
if len(sys.argv) < 8:
|
||||
|
|
|
@ -69,4 +69,4 @@ if __name__ == '__main__':
|
|||
file = sys.stdout
|
||||
if len(sys.argv) > 2:
|
||||
file = open(sys.argv[2], 'w')
|
||||
file.write(soup.prettify().encode('utf-8'))
|
||||
file.write(soup.encode('utf-8'))
|
||||
|
|
Reference in a new issue