mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
hohum
This commit is contained in:
parent
4673151e0f
commit
76af4c11d0
@ -1585,4 +1585,4 @@ def main(args=sys.argv):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
@ -43,7 +43,7 @@ def generate_html(txtfile, encoding, logger):
|
|||||||
'''
|
'''
|
||||||
enc = encoding
|
enc = encoding
|
||||||
if not encoding:
|
if not encoding:
|
||||||
encodings = ['cp1252', 'latin-1', 'iso-8859-1', 'koi8_r', 'koi8_u', 'utf8']
|
encodings = ['cp1252', 'latin-1', 'utf8', 'iso-8859-1', 'koi8_r', 'koi8_u']
|
||||||
txt, enc = None, None
|
txt, enc = None, None
|
||||||
for encoding in encodings:
|
for encoding in encodings:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user