|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
GNU indent 2.2.10 bug ?I'm using GNU indent version 2.2.10 on a Slackware 13.0 64 bit system.
The texinfo page says any space between a # and "include" is removed by default. If you want to leave it the space, then one should use the -lps option. Given this one line source file (call it test.c) that has 1 space between the # and "include": # include <stdio.h> if I run indent -st test.c indent does not make any changes to the file: the space between the # and include is left intact. Just to make sure the default wasn't to leave the space, I tried: indent -nlps test.c and again indent did nothing: the space between the # and include was maintained. in other words, the -nlps option (which is the default) does not work for me. I found this while running indent on a much larger file where indent did do a lot of clean up for me. Perhaps I'm misunderstanding what the -nlps option is supposed to do, I dunno. I would appreciate it if someone could kindly look into this and let me know if if you believe it is a bug. Kind Regards, Paul Novak k9jenius@... _______________________________________________ bug-indent mailing list bug-indent@... http://lists.gnu.org/mailman/listinfo/bug-indent |
|
|
Re: GNU indent 2.2.10 bug ?k9jenius@... wrote:
> I'm using GNU indent version 2.2.10 on a Slackware 13.0 64 bit system. > > The texinfo page says any space between a # and "include" is removed by default. > If you want to leave it the space, then one should use the -lps option. > > Given this one line source file (call it test.c) that has 1 space between > the # and "include": > > # include <stdio.h> > > if I run > > indent -st test.c > > indent does not make any changes to the file: the space between the # and include > is left intact. Just to make sure the default wasn't to leave the space, I > tried: > > indent -nlps test.c > > and again indent did nothing: the space between the # and include was maintained. > > in other words, the -nlps option (which is the default) does not work for me. > > I found this while running indent on a much larger file where indent did do > a lot of clean up for me. Perhaps I'm misunderstanding what the -nlps > option is supposed to do, I dunno. I would appreciate it if someone > could kindly look into this and let me know if if you believe it is a > bug. > > only test for the opposite action of inserting spaces :-( _______________________________________________ bug-indent mailing list bug-indent@... http://lists.gnu.org/mailman/listinfo/bug-indent |
| Free embeddable forum powered by Nabble | Forum Help |