Fixes
This commit is contained in:
parent
9d362344c9
commit
e0f58caa71
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import jester
|
||||||
|
|
||||||
proc getContent(pad:string, etherpadUrl:string):string =
|
proc getContent(pad:string, etherpadUrl:string):string =
|
||||||
var client = newHTTPClient()
|
var client = newHTTPClient()
|
||||||
result = client.getContent(etherpadUrl & "pad/p/" & pad & "/export/txt")
|
result = client.getContent(etherpadUrl & "p/" & pad & "/export/txt")
|
||||||
|
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
|
|
@ -26,7 +26,7 @@ when isMainModule:
|
||||||
|
|
||||||
let (output, exitCode) = execCmdEx(quoteShellCommand(["pdflatex", "-halt-on-error", "etherpad.tex"]))
|
let (output, exitCode) = execCmdEx(quoteShellCommand(["pdflatex", "-halt-on-error", "etherpad.tex"]))
|
||||||
if exitCode == 0:
|
if exitCode == 0:
|
||||||
sendFile("etherpad.pdf")
|
resp(Http200, readFile("etherpad.pdf"), contentType = "application/pdf")
|
||||||
else:
|
else:
|
||||||
resp output
|
resp output
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue