windows: rclrtf.py and rcldoc.py apparently working ok
--HG-- branch : WINDOWSPORT
This commit is contained in:
parent
82bdf21833
commit
42401c8f26
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user