renamed writeln to writeLine in tools
This commit is contained in:
parent
69e15ac32f
commit
f71eaf66be
3 changed files with 50 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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