Menu

#62 Bad indentation in multi-line literals

closed-fixed
nobody
Editor (71)
5
2003-10-15
2003-10-06
Anonymous
No

Indentation breaks when I use multi-line literals in C code.
For example

if(test) {
<Tab>printf("this is a test\n");
<Tab>return 0;
}

Indents correctly. However in the following case

if(test) {
<Tab>printf("this is a test\ <Tab><Tab>of a long line broken via \\ \n");
<Tab><Tab>return 0;
}

The indentation follows as above. For example the return gets
aligned to the line following the "\" rather than the printf. I know that
j indents line-by-line, so I do not know if this is really a bug per se.
But it is different than other editors.

Discussion

  • Narendra Sankar

    Narendra Sankar - 2003-10-06

    Logged In: YES
    user_id=504001

    I submitted this as nobody. would like to say that I am narensankar

     
  • Peter Graves

    Peter Graves - 2003-10-15
    • status: open --> closed-fixed
     
  • Peter Graves

    Peter Graves - 2003-10-15

    Logged In: YES
    user_id=558172

    Fixed in 0.20.1.20.

     

Log in to post a comment.