|
|
|
@ -115,6 +115,7 @@ if method == "POST":
|
|
|
|
|
#p = subprocess.check_output('echo "{2}"|pandoc --from {0} --to {1} '.format(from_format, to_format, '#foo'), shell=True, stderr=subprocess.STDOUT)
|
|
|
|
|
# print 'to_format', to_format
|
|
|
|
|
if to_format == 'icml': # icml needs solo flag: -s
|
|
|
|
|
#print 'ICML:', to_format
|
|
|
|
|
cmd = "{} --from {} --to {} -s".format(PANDOC, from_format, to_format)
|
|
|
|
|
else:
|
|
|
|
|
cmd = "{} --from {} --to {}".format(PANDOC, from_format, to_format)
|
|
|
|
|