#132 control statement in a new line with nl_create_one_liner

open
nobody
None
5
2014-08-18
2011-03-08
ib
No

I'm using v0.57 and the nl_create_if_one_liner, nl_create_for_one_liner and
nl_create_while_one_liner options and experiencing a problem I cannot solve.

I'd like

if (a)
b++;

to become

if (a) b++;

which works fine, but

if (a)
if (b) c++;

should become

if (a)
if (b) c++;

instead of

if (a) if (b) c++;

i.e. a control statement should always be in a new line, or there must not
be two or more control statements within one line.

Discussion

  • ib
    ib
    2013-01-20

    Any chance of realization?

     
  • ib
    ib
    2014-08-18

    Though due to a ruined formatting my example looks weird, the issue has been fixed in latest git master. The ticket can be closed.