Package: indent
Version: 2.2.10-1
Severity: normal

We have found that indent changes some files back and forth. Here is an
example that reproduces the problem:

jzo...@test$ cp test_indent.c test_indent.c.org
jzo...@test$ indent -kr --no-tabs test_indent.c
jzo...@test$ diff test_indent.c test_indent.c.org 
18,19c18,19
<     return
bar->bar->bar->bar->bar->bar->bar->bar->bar->bar->bar->bar->
<         bar->bar->bar->bar->bar;
---
>     return bar->bar->bar->bar->bar->bar->bar->bar->bar->bar->bar->
>         bar->bar->bar->bar->bar->bar;
jzo...@test$ indent -kr --no-tabs test_indent.c
jzo...@test$ diff test_indent.c test_indent.c.org 
jzo...@test$ 

Sincerely,
Joachim

/*
***********************************************************************
*                                                                     *
* Test for an indent bug.                                             *
*                                                                     *
***********************************************************************
*/


/*
  Test for an indent bug
*/

void foo()
{
    return bar->bar->bar->bar->bar->bar->bar->bar->bar->bar->bar->
        bar->bar->bar->bar->bar->bar;

}

Reply via email to