Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 116504
Collapse All | Expand All

(-)viewcvs-0.9.3/lib/viewcvs.py (-2 / +2 lines)
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

Return to bug 116504