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, ... )
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;
......
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