Indent -l<n> problem

Romain Vimont (®om) <[email protected]> Thu, 15 Nov 2012 15:54:14 +0100
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
Hi,

Some lines after indent -l79 have more than 79 chars:

$ indent -version
GNU indent: 2.2.11

$ cat bug.c
#include <stdio.h>
bug() {
   if((sid=(jbyte*)(*env)->GetByteArrayElements(env,jsid,NULL))==NULL){
     do_something();
   }
}

$ indent -st -gnu -nut -br -l79 bug.c
#include <stdio.h>
bug ()
{
   if ((sid = (jbyte *) (*env)->GetByteArrayElements (env, jsid, NULL)) 
== NULL) {
     do_something ();
   }
}

$ indent -st -gnu -nut -br -l79 bug.c | cut -c-80
#include <stdio.h>
bug ()
{
   if ((sid = (jbyte *) (*env)->GetByteArrayElements (env, jsid, NULL)) 
== NULL)
     do_something ();
   }
}

Maybe a conflict between -br and -l79 ?

Can I workaround this?

Thank you,
®om

_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent