Commit 05001b1c authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

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

parent 5da3e551
...@@ -50,8 +50,9 @@ static int print_client( const char *format, ... ) ...@@ -50,8 +50,9 @@ static int print_client( const char *format, ... )
int i, r; int i, r;
va_start(va, format); va_start(va, format);
for (i = 0; i < indent; i++) if (format[0] != '\n')
fprintf(client, " "); for (i = 0; i < indent; i++)
fprintf(client, " ");
r = vfprintf(client, format, va); r = vfprintf(client, format, va);
va_end(va); va_end(va);
return r; return r;
......
...@@ -56,8 +56,9 @@ static int print_proxy( const char *format, ... ) ...@@ -56,8 +56,9 @@ static int print_proxy( const char *format, ... )
int i, r; int i, r;
va_start( va, format ); va_start( va, format );
for( i=0; i<indent; i++ ) if ( format[0] != '\n' )
fprintf( proxy, " " ); for( i=0; i<indent; i++ )
fprintf( proxy, " " );
r = vfprintf( proxy, format, va ); r = vfprintf( proxy, format, va );
va_end( va ); va_end( va );
return r; return r;
......
...@@ -52,8 +52,9 @@ static int print_server(const char *format, ...) ...@@ -52,8 +52,9 @@ static int print_server(const char *format, ...)
int i, r; int i, r;
va_start(va, format); va_start(va, format);
for (i = 0; i < indent; i++) if (format[0] != '\n')
fprintf(server, " "); for (i = 0; i < indent; i++)
fprintf(server, " ");
r = vfprintf(server, format, va); r = vfprintf(server, format, va);
va_end(va); va_end(va);
return r; return r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment