Index: src/bin/psql/command.c
===================================================================
RCS file: /cvsroot/pgsql/src/bin/psql/command.c,v
retrieving revision 1.188
diff -c -c -r1.188 command.c
*** src/bin/psql/command.c	8 May 2008 17:04:26 -0000	1.188
--- src/bin/psql/command.c	9 May 2008 17:36:38 -0000
***************
*** 314,319 ****
--- 314,324 ----
  	{
  		char	   *pattern;
  		bool		show_verbose;
+ 		enum printFormat saved_format = pset.popt.topt.format;
+ 		
+ 		/* Use wrapped mode in hopes of displaying output cleanly. */
+ 		if (pset.popt.topt.format == PRINT_ALIGNED)
+ 			pset.popt.topt.format = PRINT_WRAPPED;
  
  		/* We don't do SQLID reduction on the pattern yet */
  		pattern = psql_scan_slash_option(scan_state,
***************
*** 407,412 ****
--- 412,419 ----
  				status = PSQL_CMD_UNKNOWN;
  		}
  
+ 		pset.popt.topt.format = saved_format;	/* restore */
+ 
  		if (pattern)
  			free(pattern);
  	}
