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

kevinburke opened this issue Aug 27, 2018 · 2 comments


Copy link

commented Aug 27, 2018

If I open Firefox copy text from eg. (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 as well since the behavior is different between Chrome and Firefox.

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


This comment has been minimized.

Copy link

commented Aug 28, 2018

Reproduced on FF(60.0.2)+Linux.


This comment has been minimized.

Copy link
Contributor Author

commented Aug 29, 2018

Tracking bug, it's an issue in the browser it seems.

@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
None yet
3 participants
You can’t perform that action at this time.