TXT Output: Fix Vietnamese  character being stripped from output. Fixes #1825770 [Miss character when convert to txt](https://bugs.launchpad.net/calibre/+bug/1825770)

This commit is contained in:
Kovid Goyal 2019-04-22 08:41:44 +05:30
parent d9c22e7e1c
commit 2aa2de4a68
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
__license__ = 'GPL 3'
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
@ -116,7 +117,6 @@ class TXTMLizer(object):
def cleanup_text(self, text):
self.log.debug('\tClean up text...')
# Replace bad characters.
text = text.replace(u'\xc2', '')
text = text.replace(u'\xa0', ' ')
# Replace tabs, vertical tags and form feeds with single space.