Lines 479-485
Link Here
|
479 |
def markup_stream_enscript(lang, fp): |
479 |
def markup_stream_enscript(lang, fp): |
480 |
sys.stdout.flush() |
480 |
sys.stdout.flush() |
481 |
enscript = popen.pipe_cmds([(os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')), |
481 |
enscript = popen.pipe_cmds([(os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')), |
482 |
'--color', '-W', 'html', '-E' + lang, '-o', |
482 |
'--color', '--language', 'html', '-E' + lang, '-o', |
483 |
'-', '-'), |
483 |
'-', '-'), |
484 |
('sed', '-n', '/^<PRE>$/,/<\\/PRE>$/p')]) |
484 |
('sed', '-n', '/^<PRE>$/,/<\\/PRE>$/p')]) |
485 |
|
485 |
|
Lines 495-501
Link Here
|
495 |
except IOError, v: |
495 |
except IOError, v: |
496 |
print "<h3>Failure during use of an external program:</h3>" |
496 |
print "<h3>Failure during use of an external program:</h3>" |
497 |
print "<pre>" |
497 |
print "<pre>" |
498 |
print os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')) + " --color -W html -E"+lang+" -o - -" |
498 |
print os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')) + " --color --language html -E"+lang+" -o - -" |
499 |
print "</pre>" |
499 |
print "</pre>" |
500 |
raise |
500 |
raise |
501 |
|
501 |
|