R - Regex - Replacing multiple \r\n (CRLF) with one \r\n
<p>I have tried gsub( "[\r\n]+", "\r\n", textDoc ) but it seems to treat \r and \n individually, rather than as a single string?</p>

<p>EDIT -</p>

<pre><code>"This is a line! It ends with a CRLF!\r\n

\r\n

\r\n

There is more stuff down here! I want it directly below the other stuff! Get rid of those two blank lines! Actually, ANYTIME I have blank lines, lets remove them!\r\n"
</code></pre>