bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] Trailing blank lines are not printed with -nsob


From: G.P. Halkes
Subject: [Bug-indent] Trailing blank lines are not printed with -nsob
Date: Fri, 17 Mar 2006 08:50:17 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]