Skip to content

go.talks/pkg/present: slides file doesn't allow \r\n #5339

@gopherbot

Description

@gopherbot

by jackie.space:

What steps will reproduce the problem?
1. go get code.google.com/p/go.talks on windows
2. go get github.com/nf/go11
3. cd $GOPATH/src/github.com/nf/go11; present
4. Open web browser and visit http://127.0.0.1:3999/

What is the expected output?
not a error message

What do you see instead?
unexpected header line: "23 April 2013\r"

Please provide any additional information below.
I looked at the source code, seems here:
https://code.google.com/p/go/source/browse/pkg/present/parse.go?repo=talks#178
it only splits the lines on "\n".
Should we trim the "\r"? or just use strings.Trim? or read the lines properly,
e.g. use bufio.Scanner?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions