Compressed html up to 30%

This commit is contained in:
Alexander Zolotarev 2013-08-08 18:28:20 +03:00
parent 7f2ea40f8e
commit 66c401706c
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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'))