title: How do you remove a line from <pre> without leaving an empty line?
body: <p>Given a <code>&lt;pre&gt;</code> containing multiple <code>&lt;span&gt;</code>s, how would you remove one of those <code>&lt;span&gt;</code>s without leaving an empty row?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>span {
      background-color: blue;
  }
  #text2 {
      display: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;pre&gt;
      &lt;span id="text1"&gt;SOME RANDOM TEXT&lt;/span&gt;
      &lt;span id="text2"&gt;SOME RANDOM TEXT&lt;/span&gt;  
      &lt;span id="text3"&gt;SOME RANDOM TEXT&lt;/span&gt;
  &lt;/pre&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I've tried switching to a <code>&lt;div&gt;</code> and using <code>white-space</code> but that doesn't get the same result.</p>