Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/godoc: copying source code in Firefox adds two newlines between lines #27291

Open
kevinburke opened this issue Aug 27, 2018 · 2 comments

Comments

@kevinburke
Copy link
Contributor

commented Aug 27, 2018

If I open Firefox copy text from eg. https://golang.org/src/encoding/csv/reader.go?s=3304:5704#L96 (any code page will work), the text gets pasted with a beginning newline and two newlines in between lines, like this:


func (e *ParseError) Error() string {

	if e.Err == ErrFieldCount {

		return fmt.Sprintf("record on line %d: %v", e.Line, e.Err)

	}

I can reproduce with godoc tip. I cannot reproduce in Chrome. I am running the latest Firefox on a new-ish Mac.

I would appreciate if people could comment if they can reproduce with Firefox on Windows or a Linux machine.

I may post this to https://github.com/webcompat/web-bugs as well since the behavior is different between Chrome and Firefox.

@gopherbot gopherbot added this to the Unreleased milestone Aug 27, 2018

@agnivade

This comment has been minimized.

Copy link
Member

commented Aug 28, 2018

Reproduced on FF(60.0.2)+Linux.

@kevinburke

This comment has been minimized.

Copy link
Contributor Author

commented Aug 29, 2018

Tracking bug, it's an issue in the browser it seems. https://bugzilla.mozilla.org/show_bug.cgi?id=1273836

@gopherbot gopherbot added the Tools label Sep 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.