renamed writeln to writeLine in tools
This commit is contained in:
parent
69e15ac32f
commit
f71eaf66be
3 changed files with 50 additions and 50 deletions
|
|
@ -126,10 +126,10 @@ proc parseCmdLine(c: var TConfigData) =
|
|||
break
|
||||
of cmdLongOption, cmdShortOption:
|
||||
case normalize(key)
|
||||
of "help", "h":
|
||||
of "help", "h":
|
||||
stdout.write(usage)
|
||||
quit(0)
|
||||
of "version", "v":
|
||||
of "version", "v":
|
||||
stdout.write(version & "\n")
|
||||
quit(0)
|
||||
of "o", "output": c.outdir = val
|
||||
|
|
@ -431,7 +431,7 @@ proc buildWebsite(c: var TConfigData) =
|
|||
if not existsDir("web/upload"):
|
||||
createDir("web/upload")
|
||||
if open(f, outfile, fmWrite):
|
||||
writeln(f, generateHTMLPage(c, file, content, rss))
|
||||
writeLine(f, generateHTMLPage(c, file, content, rss))
|
||||
close(f)
|
||||
else:
|
||||
quit("[Error] cannot write file: " & outfile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue