arrow-down arrow at-sign bug check checkbox-checked checkbox-unchecked svg-checkmark chevron-right chevrons-right circle-down circle-left circle-right circle-up cloud2 svg-cross2 download download external-link filter github hash home leaf leaf left link-2 log-in log-out mail menu message-square minus plus radio-checked radio-checked2 radio-unchecked search settings spinner8 target twitter up upload-2 user users warning x zap
  • Home
  • Report a bug
  • Contribute
  • All issues
  • Login

URL: https://golang.org/src/errors/errors.go?s=293:320#L1

Browser / Version: Firefox 62.0
Operating System: Mac OS X 10.13
Tested Another Browser: Yes

Problem type: Something else
Description: Copy/pasting text inserts two newlines per one newline in the document
Steps to Reproduce:
Visit the URL, click to copy a few lines of the code (for example, all four lines of the New() function docstring and body), then paste into a document that expects plain text - this textarea, vim, plain text TextEdit.app.

In Firefox, this leads to two newlines being inserted per one newline in the original document (see below). I cannot reproduce in Chrome. I cannot reproduce by pasting into Notes.app.


// New returns an error that formats as the given text.

func New(text string) error {

	return &errorString{text}

}

Screenshot Description

From webcompat.com with ❤️

Please login to edit issues.

View issue on Github

Shortcut: Press l on your keyboard to open the label editor. Shortcut: Press g on your keyboard to be taken to the GitHub view of this page.
Closed: Duplicate
#18492

golang.org - Copy/pasting text inserts two newlines per one newline in the document

Opened: 2018-08-28
Reporter: kevinburke
Comments: 6
  • Home
  • List of issues
  • About
  • Contribute
  • Contact
  • Privacy Policy
  • Terms of Service
  • Code of Conduct