Sent: Wednesday, December 12, 2018 at 8:55 AM From: JimH <jamesh65@users.sourceforge.net> To: "[astyle:tickets] " <84@tickets.astyle.p.re.sourceforge.net> Subject: [astyle:tickets] #84 Add option to delete extra empty lines
Just looking for exactly this option - delete any extra lines in a seqence of 2 or more empty lines. Did it ever make it in to the mainline?
---
** [tickets:#84] Add option to delete extra empty lines**
**Status:** open
**Milestone:** None
**Created:** Wed Jun 25, 2014 11:16 AM UTC by Lars Christensen
**Last Updated:** Wed Dec 12, 2018 03:54 PM UTC
**Owner:** nobody
**Attachments:**
I really appreciate this feature. But I would like to suggest an addition: You should distinguish between empty lines between expressions (type 2) and outside of function bodies (type 1).
In the 3.3-beta2 version, there is a new feature available called "--squeeze-lines=#" which allows you to remove consecutive lines that exceed the specified number.
For example, if you set the value to 2, any third and subsequent empty lines will be eliminated.
This means that you can still preserve visual gaps if you prefer to do so.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Edited patch which included an unintended change to dist-format-astyle.bat.
Ticket moved from /p/astyle/bugs/289/
Just looking for exactly this option - delete any extra lines in a seqence of 2 or more empty lines. Did it ever make it in to the mainline?
jimp03@email.com
From: JimH <jamesh65@users.sourceforge.net>
To: "[astyle:tickets] " <84@tickets.astyle.p.re.sourceforge.net>
Subject: [astyle:tickets] #84 Add option to delete extra empty lines
---
** [tickets:#84] Add option to delete extra empty lines**
**Status:** open
**Milestone:** None
**Created:** Wed Jun 25, 2014 11:16 AM UTC by Lars Christensen
**Last Updated:** Wed Dec 12, 2018 03:54 PM UTC
**Owner:** nobody
**Attachments:**
- [astyle-delete-extra-empty-lines.patch](https://sourceforge.net/p/astyle/tickets/84/attachment/astyle-delete-extra-empty-lines.patch) (7.1 kB; application/octet-stream)
Patch attached which adds option --delete-extra-empty-lines / -xE to remove extra empty lines (where there is two or more). Keeps a single empty line.
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/astyle/tickets/84/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
I really appreciate this feature. But I would like to suggest an addition: You should distinguish between empty lines between expressions (type 2) and outside of function bodies (type 1).
In the 3.3-beta2 version, there is a new feature available called "--squeeze-lines=#" which allows you to remove consecutive lines that exceed the specified number.
For example, if you set the value to 2, any third and subsequent empty lines will be eliminated.
This means that you can still preserve visual gaps if you prefer to do so.