Trailing blank lines are not printed with -nsob

"G.P. Halkes" <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
Hello,

with indent 2.2.9 (and probably previous versions as well) trailing blank
lines in a file are not printed when using the -nsob option (don't swallow
optional blank lines). I personally want those lines there, and if I read the
intention of the -nsob option correctly they should be there.

example (using indent --ignore-profile -nsob):
input:
----------------------



int main () {

}




-----------------------
output:
-----------------------



int
main ()
{

}
-----------------------

Attached is a patch which will output the trailing blank lines when -nsob is
used.

Regards,
Gertjan Halkes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.