# # # patch "file.psp" # from [d36cc97dee84c41f56e0d81272f0050229d39ea0] # to [65cc6687cfdb8c71581d09cac1d94ef63e1b3a5f] # ============================================================ --- file.psp d36cc97dee84c41f56e0d81272f0050229d39ea0 +++ file.psp 65cc6687cfdb8c71581d09cac1d94ef63e1b3a5f @@ -110,11 +110,11 @@ req.write(hq(contents)) stop_code() def enscript(): - command = config.enscript_path + ' -o - --color -w html' + command = config.enscript_path + ' -o - --color --language=html' command += ' --highlight=%s' % (pipes.quote(filter)) result = run_command(command, to_child=contents) if result['exitcode'] != 0: - raise Exception('Error running enscript.') + raise Exception('Error running enscript (%s) : "%s".' % (hq(command), hq(result['childerr']))) in_contents = False for line in result['fromchild'].split('\n'): if line.startswith('
'):