|
|
|
@ -113,8 +113,9 @@ if method == "POST":
|
|
|
|
|
print
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
# 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)
|
|
|
|
|