Skip to content

We shouldn't add explicit newlines when writing errors #1491

Description

@lzybkr

Steps to reproduce

On Windows

PS> throw ("1234567890"*([Console]::BufferWidth/10 + 10))

then with the mouse, select the text of the error message, paste on something like notepad

Expected behavior

no unnecessary line breaks

Actual behavior

line breaks at the buffer width

Environment data

Win10 any version

Activity

  1. added this to the milestone on Jul 29, 2016
  2. modified the milestones: Future, on Jul 29, 2016
  3. removed their assignment
    on Jul 29, 2016
  4. removed this from the post-6.0.0 milestone on Mar 4, 2017
  5. added
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Mar 4, 2017
  6. iSazonov commented on Mar 8, 2017

    @iSazonov
    Collaborator

    If I insert clipboard in Notepad after $error[0].Exception.Message | clip I don't see any extra newlines.
    Jason Shirk (@lzybkr) Please clarify that we should fix.

  7. lzybkr commented on Mar 8, 2017

    @lzybkr
    ContributorAuthor

    You're trying something other than what the repro steps say - and in this case, you will see different behavior.

    Do follow my repro steps exactly (including running on Win10).

  8. added and removed
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Oct 15, 2017
  9. SteveL-MSFT commented on Oct 15, 2017

    @SteveL-MSFT
    Member

    Dupe of #3813

    I know this is older, but that one has more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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