widl: Don't generate indentation spaces on empty lines.
This commit is contained in:
parent
5da3e551a2
commit
05001b1ca8
|
@ -50,8 +50,9 @@ static int print_client( const char *format, ... )
|
|||
int i, r;
|
||||
|
||||
va_start(va, format);
|
||||
for (i = 0; i < indent; i++)
|
||||
fprintf(client, " ");
|
||||
if (format[0] != '\n')
|
||||
for (i = 0; i < indent; i++)
|
||||
fprintf(client, " ");
|
||||
r = vfprintf(client, format, va);
|
||||
va_end(va);
|
||||
return r;
|
||||
|
|
|
@ -56,8 +56,9 @@ static int print_proxy( const char *format, ... )
|
|||
int i, r;
|
||||
|
||||
va_start( va, format );
|
||||
for( i=0; i<indent; i++ )
|
||||
fprintf( proxy, " " );
|
||||
if ( format[0] != '\n' )
|
||||
for( i=0; i<indent; i++ )
|
||||
fprintf( proxy, " " );
|
||||
r = vfprintf( proxy, format, va );
|
||||
va_end( va );
|
||||
return r;
|
||||
|
|
|
@ -52,8 +52,9 @@ static int print_server(const char *format, ...)
|
|||
int i, r;
|
||||
|
||||
va_start(va, format);
|
||||
for (i = 0; i < indent; i++)
|
||||
fprintf(server, " ");
|
||||
if (format[0] != '\n')
|
||||
for (i = 0; i < indent; i++)
|
||||
fprintf(server, " ");
|
||||
r = vfprintf(server, format, va);
|
||||
va_end(va);
|
||||
return r;
|
||||
|
|
Loading…
Reference in New Issue