bug-indent
[Top][All Lists]
Advanced

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

GNU indent 2.2.10 bug ?


From: k9jenius
Subject: GNU indent 2.2.10 bug ?
Date: Sun, 04 Oct 2009 22:18:34 -0500
User-agent: Heirloom mailx 12.4 7/29/08

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
     address@hidden




reply via email to

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