windows: rclrtf.py and rcldoc.py apparently working ok

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes 2015-09-12 16:53:24 +02:00
parent 82bdf21833
commit 42401c8f26
2 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ class RclExecM:
if sys.platform == "win32":
import msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
def rclog(self, s, doexit = 0, exitvalue = 1):
print("RCLMFILT: %s: %s" % (self.myname, s), file=sys.stderr)

View File

@ -20,7 +20,7 @@ class RTFProcessData:
def takeLine(self, line):
if not self.gothead:
if self.patendhead.search(line):
self.out += '<meta http-equiv="Content-Type"' + \
self.out += '<meta http-equiv="Content-Type" ' + \
'content="text/html;charset=UTF-8">' + "\n"
self.out += line + "\n"
self.gothead = 1