Bug#535601: Indent changes file twice when called twice (fwd)
Santiago Vila <[email protected]> Fri, 24 Jul 2009 20:20:25 +0200 (CEST)
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello. I received this from the Debian bug system: ---------- Forwarded message ---------- From: Joachim Zobel <[email protected]> To: [email protected] Date: Fri, 03 Jul 2009 08:12:49 +0200 Subject: Bug#535601: Indent changes file twice when called twice 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: jzobel@test$ cp test_indent.c test_indent.c.org jzobel@test$ indent -kr --no-tabs test_indent.c jzobel@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; jzobel@test$ indent -kr --no-tabs test_indent.c jzobel@test$ diff test_indent.c test_indent.c.org jzobel@test$ Sincerely, Joachim _______________________________________________ bug-indent mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-indent
test_indent.c
(text/x-csrc, 521 B)
/*
***********************************************************************
* *
* 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;
}