title: Why does Select-String add empty lines?
body: <p>Here is a minimal repro example.</p>
  
  <p>Expected result:</p>
  
  <pre><code>PS C:\&gt; ("a", "b")
  a
  b
  PS C:\&gt; ("a", "b") | Select-String "b"
  b
  PS C:\&gt;
  </code></pre>
  
  <p>Actual result:</p>
  
  <pre><code>PS C:\&gt; ("a", "b")
  a
  b
  PS C:\&gt; ("a", "b") | Select-String "b"
  
  b
  
  
  PS C:\&gt;
  </code></pre>
  
  <p>As you can see, the second output has one empty line before and two empty lines after the matched lines.</p>
  
  <p><strong>Why does that happen? And what can I do about it?</strong></p>
  
  <p>(Note: This is a minimal example. In my real code, I'm parsing <code>svn status</code> output for uncommitted files and I get the same problem of spurious newlines.)</p>