<p>I think that adding a "Remove n-1 empty lines" to LineOperations is great idea.</p>
<p>However, there are some concerns:</p>
<ul>
<li>
<p>Implementing this function should be simple enough, but I feel like this kind of plugin can quickly get out of hand with unused functions. Are there enough people who would use this function?</p>
</li>
<li>
<p>This is stepping over the line into the land of 'code styling'.</p>
<ul>
<li>This plugin is not really intended to format code (that stuff gets crazy real quick)</li>
</ul>
</li>
</ul>
<p>If you are looking for a quickly solution try this:</p>
<ol>
<li>In find and replace (ctrl-h)<br>
check: "Use reuglar expressions", "Use multi-line matching", "Case sensitive"</li>
<li>Search for: "\n{3,}" (or "(\r\n){3,}" in windows)</li>
<li>Replace with: "\n\n" (or "\r\n\r\n" in windows)</li>
</ol>
<p>If you are looking for a more complex solution try <a href="http://astyle.sourceforge.net/">AStyle</a>.</p>
<p>If you can convince me that my concnerns above are not a problem, then I would be more than happy to add this function. Please let me know what you think after reading this.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/498#issuecomment-268190793">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ1cYr4hWiL7qUTPLBze7utLE8xkuks5rJ5npgaJpZM4KufpK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ7qYPG-3Pg9kL_sojC-5wlvgY17Rks5rJ5npgaJpZM4KufpK.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/issues/498#issuecomment-268190793"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-plugins","title":"geany/geany-plugins","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-plugins"}},"updates":{"snippets":[{"icon":"PERSON","message":"@smostertdev in #498: \r\n\r\nI think that adding a \"Remove n-1 empty lines\" to LineOperations is great idea.\r\n\r\nHowever, there are some concerns:\r\n- Implementing this function should be simple enough, but I feel like this kind of plugin can quickly get out of hand with unused functions. Are there enough people who would use this function?\r\n\r\n- This is stepping over the line into the land of 'code styling'.\r\n\t- This plugin is not really intended to format code (that stuff gets crazy real quick)\r\n\r\nIf you are looking for a quickly solution try this:\r\n1. In find and replace (ctrl-h)\r\ncheck: \"Use reuglar expressions\", \"Use multi-line matching\", \"Case sensitive\"\r\n2. Search for: \"\\n{3,}\" (or \"(\\r\\n){3,}\" in windows)\r\n3. Replace with: \"\\n\\n\" (or \"\\r\\n\\r\\n\" in windows)\r\n\r\nIf you are looking for a more complex solution try [AStyle](http://astyle.sourceforge.net/).\r\n\r\nIf you can convince me that my concnerns above are not a problem, then I would be more than happy to add this function. Please let me know what you think after reading this.\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany-plugins/issues/498#issuecomment-268190793"}}}</script>