renamed writeln to writeLine in tools

This commit is contained in:
patrick dw 2015-06-19 01:36:57 -05:00
commit f71eaf66be
3 changed files with 50 additions and 50 deletions

View file

@ -19,9 +19,9 @@ proc process(dir, infile: string, outfile: File,
ig <- (comment / \s+)* """:
# follow the include file:
if process(dir, matches[0], outfile, processed) == prAddIncludeDir:
writeln(outfile, line)
writeLine(outfile, line)
else:
writeln(outfile, line)
writeLine(outfile, line)
proc main(dir, outfile: string) =
var o: File

View file

@ -119,7 +119,7 @@ proc processFile(filename: string) =
var filenameShown = false
template beforeHighlight =
if not filenameShown and optVerbose notin options:
stdout.writeln(filename)
stdout.writeLine(filename)
filenameShown = true
var buffer: string
@ -128,7 +128,7 @@ proc processFile(filename: string) =
except IOError:
echo "cannot open file: ", filename
return
if optVerbose in options: stdout.writeln(filename)
if optVerbose in options: stdout.writeLine(filename)
var pegp: TPeg
var rep: Regex
var result: string

View file

@ -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)