widl: Don't generate indentation spaces on empty lines.

This commit is contained in:
Dan Hipschman 2006-08-11 10:15:55 -07:00 committed by Alexandre Julliard
parent 5da3e551a2
commit 05001b1ca8
3 changed files with 9 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;