small bugfixes; documentation generator supports smilies for the forum

This commit is contained in:
Araq
2012-05-01 11:14:29 +02:00
parent ccae314635
commit e95f155af3
11 changed files with 229 additions and 84 deletions

View File

@@ -203,8 +203,10 @@ proc main(c: var TConfigData) =
if c.ticker.len > 0:
Exec(cmd % [c.nimrodArgs, c.ticker])
var temp = "web" / changeFileExt(c.ticker, "temp")
c.ticker = readFile(temp)
if isNil(c.ticker): quit("[Error] cannot open:" & temp)
try:
c.ticker = readFile(temp)
except EIO:
quit("[Error] cannot open: " & temp)
RemoveFile(temp)
for i in 0..c.tabs.len-1:
var file = c.tabs[i].val