Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#240 Struct named member initializations double-indented

closed-fixed
Jim Pattee
None
7
2015-01-03
2013-10-11
Rene Nielsen
No

$svn info
Last Changed Rev: 398
Last Changed Date: 2013-10-09 20:34:34 +0200 (Wed, 09 Oct 2013)

Using four-space indents.

Input:

static my_struct_t a = {
    .b = 17,
    .c = 19
};

Output (notice that the four spaces become eight spaces):

static my_struct_t a = {
        .b = 17,
        .c = 19
};

In news.html for the pending 2.04 I found this line that might be related:
"A change has been made to indent continuation lines beginning with a dot (.). This will allow for a long seuqences of method calls such as those sometimes needed by Google Mock."

Thanks,
René Nielsen

P.S. There are two typos in the line from news.html: "seuqences" should be "sequence" (swap 'u' and 'q' and remove terminating 's', or keep it in plural and remove the 'a').

Discussion

  • Jim Pattee
    Jim Pattee
    2013-10-12

    The continuation line change has been removed from SVN. It needs more work.
    Try again and see what happens.

     
  • Jim Pattee
    Jim Pattee
    2013-10-21

    • status: open --> open-fixed
    • assigned_to: Jim Pattee
    • Priority: 5 --> 7
     
  • Jim Pattee
    Jim Pattee
    2013-11-05

    • status: open-fixed --> closed-fixed