title: Why will newlines from my javascript prompt no longer paste into windows applications?
body: <p>This function gets the text from a one row of a table and displays it, along with the text from the header row in a prompt, so that a user can copy and paste from the prompt. It works, but for some reason the newlines are no longer included when copying/pasting from the prompt. I have not changed this at all, and it was working just fine this morning, unless I was hallucinating.</p>
  
  <pre><code>$(".display-row").on('click', function () {
      var tr = $(this).closest('tr'),
          headers = $("#index-table-headers").children(),
          displayText = "";
      tr.children().each(function (i) {
          var headerText = $(headers.get(i)).text(),
          valueText = $(this).text();
          if (headerText.trim()) { // prevents this button from being included
              displayText += headerText + ": " + valueText + "\n";
          }
      });
  
      window.prompt('This can be used to copy and paste the record', displayText);
  });
  </code></pre>
  
  <p>I have seen in multiple other Q&amp;As that appending a newline to a string should allow it to be included in a prompt; I know it can work, because it DID work earlier. Is there anything in this code that would make it not work, or should I try to look for some other reason?</p>
  
  <p>EDIT:
  I am in Windows, so I tried using \r\n as Justin Powell recommended. I am sure the \r\n is in the <code>displayText</code> (I can see it in firebug right before opening the prompt.) In fact, in firebug the variable actually expands to multiple lines. Unfortunately, no matter which application I try to paste it into, I still do not get them.</p>