Stop printing newlines between lines (patch by jmjl)
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/tokiko/trunk@22 8f5ca974-a7f8-e144-9f80-d41d5039c194
This commit is contained in:
parent
448c205bbf
commit
e1e110ad81
@ -80,7 +80,7 @@ func printGophermap(c net.Conn, dir string) {
|
|||||||
|
|
||||||
scanner := bufio.NewScanner(file)
|
scanner := bufio.NewScanner(file)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
c.Write([]byte(formatLine(scanner.Text()) + "\n"))
|
c.Write([]byte(formatLine(scanner.Text()) /*+ "\n"*/))
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Write([]byte(".\r\n"))
|
c.Write([]byte(".\r\n"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user